Composite/Group equivalent [message #20506] |
Mon, 09 February 2009 03:30 |
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] |
Mon, 09 February 2009 04:37 |
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 21:27 |
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04814 seconds