Skip to content

Commit

Permalink
Fixed issues with element lookup in runtime classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstamann committed Nov 27, 2024
1 parent 9edfb3a commit 44466f3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ protected void waitUntilUrl(String urlRegex) {
Wait<WebDriver> wait =
new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(25))
.pollingEvery(Duration.ofMillis(300))
.ignoring(ElementNotInteractableException.class);
.pollingEvery(Duration.ofMillis(300));

wait.until(ExpectedConditions.urlMatches(urlRegex));
}
Expand All @@ -98,7 +97,7 @@ public WebElement waitForElementToBeInteractable(By by) {
new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(15))
.pollingEvery(Duration.ofMillis(300))
.ignoring(ElementNotInteractableException.class);
.ignoring(NoSuchElementException.class,ElementNotInteractableException.class);

return wait.until(ExpectedConditions.elementToBeClickable(by));
}
Expand Down

0 comments on commit 44466f3

Please sign in to comment.