Created
March 26, 2021 15:57
-
-
Save mkutz/a4ef9e058025e7e2197d9f1fa2952501 to your computer and use it in GitHub Desktop.
Selenium Silver Bullet: Clickin on Things Evnetually
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new WebDriverWait(webDriver, 4) | |
.ignoring(ElementClickInterceptedException.class, ElementNotInteractableException.class) | |
.until(driver -> { | |
final var button = driver.findElement(By.className("button"); | |
button.click(); | |
return button; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment