When I run "net.sf.swtbot.demo.SWTBotDemo" I get this exception:

Exception in thread "main" net.sf.swtbot.widgets.WidgetNotFoundException: Could 
not find widget with text One
    at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:128)
    at net.sf.swtbot.widgets.SWTBotButton.<init>(SWTBotButton.java:46)
    at net.sf.swtbot.SWTBot.button(SWTBot.java:192)
    at net.sf.swtbot.SWTBot.button(SWTBot.java:181)
    at net.sf.swtbot.demo.SWTBotDemo.playWithListeners(SWTBotDemo.java:156)
    at net.sf.swtbot.demo.SWTBotDemo.perform(SWTBotDemo.java:81)
    at net.sf.swtbot.demo.SWTBotDemo.start(SWTBotDemo.java:56)
    at net.sf.swtbot.demo.SWTBotDemo.main(SWTBotDemo.java:42)
Caused by: net.sf.swtbot.widgets.TimeoutException: Timeout after: 5000 ms.: 
Could not find widget
    at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:462)
    at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:445)
    at net.sf.swtbot.SWTBot.waitUntil(SWTBot.java:423)
    at net.sf.swtbot.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:115)
    ... 7 more

It seems that SWT Bot cannot access the button, although I don't see any reason 
why not. If I comment the statement "bot.button("One").click();" then the rest 
of the demo works.

       
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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