开发者

robotium testing wait time between each clicks

开发者 https://www.devze.com 2023-03-31 06:54 出处:网络
in robotium testing, is it possible to set a wait time bet开发者_StackOverflow社区ween clicks? For example, I have 2 buttons(A & B). I want robotium to click on button A and then 20 seconds later

in robotium testing, is it possible to set a wait time bet开发者_StackOverflow社区ween clicks? For example, I have 2 buttons(A & B). I want robotium to click on button A and then 20 seconds later click on button B.


u can use this code its working fine

solo.clickOnButton(0);

solo.sleep(20000); // 20 seconds

solo.clickOnButton(0);


If the purpose is to wait for a fixed amount of time then use solo.sleep(20000). If you want to wait for a condition before moving on you can use the waitFor methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消