robotium testing wait time between each clicks
Asked Answered
C

2

6

in robotium testing, is it possible to set a wait time between 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.

Coranto answered 26/8, 2011 at 22:49 Comment(0)
L
13

u can use this code its working fine

solo.clickOnButton(0);

solo.sleep(20000); // 20 seconds

solo.clickOnButton(0);

Lackadaisical answered 18/10, 2011 at 10:42 Comment(0)
F
3

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.

Floodlight answered 29/8, 2011 at 5:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.