-1

I want to click a button ten times for testing the UI. Is it possible? If so, how?

MeNoVa
  • 69
  • 2
  • 7

1 Answers1

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