Skip to content

Commit

Permalink
Increase wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken authored Oct 1, 2023
1 parent bc33902 commit f2d4a1b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void perform(ScreenCaptureActivity activity) {
UiDevice device = UiDevice.getInstance(getInstrumentation());

onView(withId(R.id.rbScreen)).perform(click());
UiObject2 button = device.wait(Until.findObject(By.text("Start now")), 10000);
UiObject2 button = device.wait(Until.findObject(By.text("Start now")), 100000);
assertNotNull(button);
button.click();

Expand All @@ -123,7 +123,7 @@ public void perform(ScreenCaptureActivity activity) {

//FIXME: without this sleep, it's failing because onFinish event received but resources are not closed yet
try {
Thread.sleep(3000);
Thread.sleep(30000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit f2d4a1b

Please sign in to comment.