Hi,
I want button.click() to be executed until the conditon in while condition in loop is False.
Please refer the following code...
final SWTBotButton button = bot.button("Next");
do
{
button.click();
}
while(bot.label("LabelName").isVisible()==false);
My Program goes into time out after executing "button.click();" once or twice even though the value returned by while loop is false.
Regards,
Pawan Relan
bot.button("Next").click(); bot.waitUntil(new DefaultCondition() { @Override public boolean test() throws Exception { return !bot.label("LabelName").isVisible(); // waits here until TRUE is returned. But max 5 seconds. } @Override public String getFailureMessage() { return "Error waiting for condition to be true."; // error msg here } });