Skip to content

Commit cef9efe

Browse files
committed
Fixes after review
1 parent 0cf1f9e commit cef9efe

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/io/appium/java_client/pagefactory/bys/builder

1 file changed

+2
-1
lines changed

src/main/java/io/appium/java_client/pagefactory/bys/builder/ByAll.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public WebElement findElement(SearchContext context) {
4545
return bys.stream()
4646
.map(by -> getSearchingFunction(by).apply(context))
4747
.filter(Optional::isPresent)
48-
.findFirst().map(Optional::get)
48+
.map(Optional::get)
49+
.findFirst()
4950
.orElseThrow(() -> new NoSuchElementException("Cannot locate an element using " + toString()));
5051
}
5152
}

0 commit comments

Comments
 (0)