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