Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Workaround for clicking elements from a WebDriver test in Internet Explorer
public static void clickElement(WebDriver driver, By condition) {
WebElement sbutton = driver.findElement(condition);
try {
sbutton = driver.findElement(condition);;
} catch (NoSuchElementException e) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment