Skip to content

Instantly share code, notes, and snippets.

@mkutz
Created March 26, 2021 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkutz/a4ef9e058025e7e2197d9f1fa2952501 to your computer and use it in GitHub Desktop.
Save mkutz/a4ef9e058025e7e2197d9f1fa2952501 to your computer and use it in GitHub Desktop.
Selenium Silver Bullet: Clickin on Things Evnetually
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