Search code examples
androidrobotium

robotium testing wait time between each clicks


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.


Solution

  • u can use this code its working fine

    solo.clickOnButton(0);

    solo.sleep(20000); // 20 seconds

    solo.clickOnButton(0);