Testing robotic latency between each click

when testing robotium, is it possible to set the wait time between clicks? For example, I have two buttons (A and B). I want robotics to press button A, and then after 20 seconds press button B.

+6
source share
2 answers

u can use this code in his work

solo.clickOnButton (0);

solo.sleep (20000); // 20 seconds

solo.clickOnButton (0);

+14
source

If the goal is to wait a fixed amount of time, use solo.sleep (20000). If you want to wait for the state before moving, you can use the waitFor methods.

+3
source

Source: https://habr.com/ru/post/896014/


All Articles