I want to click a button ten times for testing the UI. Is it possible? If so, how?
Asked
Active
Viewed 140 times
1 Answers
0
You can set a loop with some delay. something like this.
for (int i = 0; i < 10; i++) {
onView(ViewMatchers.withId(<button_id>)).perform(click());
SystemClock.sleep(<someDelay milliseconds>);
}

Nakul
- 1,313
- 19
- 26