Skip to content

Commit 721c2fe

Browse files
committed
do not zero out implicit wait during location call
1 parent a6df515 commit 721c2fe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/io/appium/java_client/pagefactory/AppiumElementLocator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ private void changeImplicitlyWaitTimeOut(long newTimeOut, TimeUnit newTimeUnit)
8383
private <T extends Object> T waitFor(Supplier<T> supplier) {
8484
WaitingFunction<T> function = new WaitingFunction<>();
8585
try {
86-
changeImplicitlyWaitTimeOut(0, TimeUnit.SECONDS);
8786
FluentWait<Supplier<T>> wait = new FluentWait<>(supplier)
8887
.ignoring(NoSuchElementException.class);
8988
wait.withTimeout(timeOutDuration.getTime(), timeOutDuration.getTimeUnit());
@@ -94,8 +93,6 @@ private <T extends Object> T waitFor(Supplier<T> supplier) {
9493
.class.cast(function.foundStaleElementReferenceException);
9594
}
9695
throw e;
97-
} finally {
98-
changeImplicitlyWaitTimeOut(originalTimeOutDuration.getTime(), originalTimeOutDuration.getTimeUnit());
9996
}
10097
}
10198

0 commit comments

Comments
 (0)