| How to click a button until the condition is true.? [message #1077768] |
Fri, 02 August 2013 01:50  |
Pawan Relan Messages: 3 Registered: July 2013 |
Junior Member |
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04753 seconds