We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf1f9e commit cef9efeCopy full SHA for cef9efe
src/main/java/io/appium/java_client/pagefactory/bys/builder/ByAll.java
@@ -45,7 +45,8 @@ public WebElement findElement(SearchContext context) {
45
return bys.stream()
46
.map(by -> getSearchingFunction(by).apply(context))
47
.filter(Optional::isPresent)
48
- .findFirst().map(Optional::get)
+ .map(Optional::get)
49
+ .findFirst()
50
.orElseThrow(() -> new NoSuchElementException("Cannot locate an element using " + toString()));
51
}
52
0 commit comments