Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Composite/Group equivalent
Composite/Group equivalent [message #20506] Mon, 09 February 2009 03:30 Go to next message
Eclipse UserFriend
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] Mon, 09 February 2009 04:37 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
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 21:27 Go to previous message
Eclipse UserFriend
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: Tue Nov 25 02:08:49 GMT 2014

Powered by FUDForum. Page generated in 0.01946 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software