Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] Window focus matters?

Hi

I've got this code (in JRuby):

  Swt.bot.shell("Redcar").bot.menu("File")

and this works when the test window is focussed, but fails to find the widget if it is not focussed. Is there a way to make this work with the window in the background?

(It'd be nice to be able to run tests in the background, since they take quite a long time).

Strangely, this part Swt.bot.shell("Redcar") does return an object and then .bot does return a bot, so its *seems* to be finding the Shell ok. Just then not the menu. 

I'm on OSX Lion if it matters

thanks
Dan

__________________________
Daniel Lucraft

danlucraft.com/blog
twitter.com/danlucraft


Back to the top