On 07-Aug-08, at 7:58 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] 
 > wrote:
> Tested with the code:
>  bot.menu("File").menu("Foo...").click();

Assuming that this opens up a dialog that is blocking, there's two  
thing that you can do:
WizardDialog#setBlockOnOpen(false)

WizardDialog#open starts the display loop whenever it is invoked.

Another thing that _may_ be an issue is that you're running SWTBot on  
the UI thread. SWTBot works best when run in a non UI thread.

There's been umpteen number of discussions about SWTBot blocking on  
dialogs, which you will find in the mailing list archives. There's a  
context menu option -- "run as>swtbot tests" that should be used to  
execute swtbot tests. More on that here: 
http://swtbot.sourceforge.net/users-guide.html

-- Ketan


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to