|Re: Help to Click on SWT Element [message #1232697 is a reply to message #1232682]
||Fri, 17 January 2014 14:20
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
On 01/17/2014 02:38 PM, Miguel Pessoa wrote:|
> Mickael Istria, you know how I can retrieve the widget that has the
> focus? Or how do I print on screen all the widgets available on the
> active sheel? I'm looking for some alternative to make my test work.
As far as I remember, I don't think SWTBot has a method to retrieve the
widget that has the focus. That said once text has the focus, you can
directly simulate key pressed with SWTBot API to put text in it.
About alternative methods, you might be able to try bot.text(1) or
) or another method allowing to find text.
IMO, textWithLabel should work here. If it does not, it could be a bug
in SWTBot, that you should report to the tracker:
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.02538 seconds