Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSWTBot couldn't find widget -- random
https://www.eclipse.org/forums/index.php/mv/msg/208367/667517/#msg_667517
I'm using swtbot to test a RCP application, but I got a big problem ...
swtbot sometimes couldn't find a simple widget, like "Text", "Menu" ...
I wrote this :
bot.menu("label").click(); ...
bot.textWithLabel("label").setText("...");
sometimes, these work well, but sometimes will throw "Widget not found exception.."
I did nothing when running swtbot and kept the rcp application in front and focus on]]>shawn 2011-04-29T10:17:29-00:00Re: SWTBot couldn't find widget -- random
https://www.eclipse.org/forums/index.php/mv/msg/208367/668561/#msg_668561
bot.waitUntil(new DefaultCondition() {
public boolean test() {
return SOME_CONDITION;
}
public String getFailureMessage() {
return "Dialog XXX not opened.";
}
});
]]>Felix Lu2011-05-06T08:55:28-00:00Re: SWTBot couldn't find widget -- random
https://www.eclipse.org/forums/index.php/mv/msg/208367/674180/#msg_674180
but just sometimes will work .. strange !
however, thanks for your reply !]]>shawn 2011-05-26T03:27:00-00:00Re: SWTBot couldn't find widget -- random
https://www.eclipse.org/forums/index.php/mv/msg/208367/676930/#msg_676930
For example, previous test case fails. so, opened dialog box was not closed.
when you perform the next test cases, the dialog box still remains.]]>Lycos 2011-06-07T02:07:30-00:00