Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Composite/Group equivalent
Composite/Group equivalent [message #20506] Sun, 08 February 2009 22:30 Go to next message
Eclipse User
Originally posted by: aaron.c.muller.saic.com

I have noticed that SWTbot appears to be missing composite and group
objects at the moment. Is this just something I have missed, or
have they not been implemented. I don't particularly want to just
fire off a view-wide search for buttons, or whatever, I would much
rather search by composite. If anyone could advise me on this, I would
be grateful.

Regards,
Aaron Muller
Re: Composite/Group equivalent [message #20515 is a reply to message #20506] Sun, 08 February 2009 23:37 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Are you looking for the api:

bot.buttonInGroup("buttonText", "groupName") ?

SWTBot does not allow you to search for composites/groups directly since
there's no operation that you can do with them, other than search within
it. But since that's taken care of by the above API, it did not seem
necessary to add explicit support to find composites and groups.

-- Ketan

On 9/2/09 09:00, Aaron wrote:
> I have noticed that SWTbot appears to be missing composite and group
> objects at the moment. Is this just something I have missed, or
> have they not been implemented. I don't particularly want to just
> fire off a view-wide search for buttons, or whatever, I would much
> rather search by composite. If anyone could advise me on this, I would
> be grateful.
>
> Regards,
> Aaron Muller
Re: Composite/Group equivalent [message #20549 is a reply to message #20515] Mon, 09 February 2009 16:27 Go to previous message
Eclipse User
Originally posted by: aaron.c.muller.saic.com

Oh, cool. That will do the trick! The issue was,
I was looking/using 1.x. I would much rather use
a stable version + junit3, but the improved API is definitly
something to take into consideration.

Personally, I would have thought it would be easier/better to add
one set of composite/group traversal methods, instead of
having xInGroup for every SWT widget type.

Thanks for the help, Ketan!

Regards,
Aaron

Ketan Padegaonkar wrote:
> Are you looking for the api:
>
> bot.buttonInGroup("buttonText", "groupName") ?
>
> SWTBot does not allow you to search for composites/groups directly since
> there's no operation that you can do with them, other than search within
> it. But since that's taken care of by the above API, it did not seem
> necessary to add explicit support to find composites and groups.
>
> -- Ketan
>
Previous Topic:Nightly builds now available!
Next Topic:version number not updated on download page
Goto Forum:
  


Current Time: Mon Sep 01 22:14:38 EDT 2014

Powered by FUDForum. Page generated in 0.02592 seconds