Created
May 16, 2011 09:48
Workaround for clicking elements from a WebDriver test in Internet Explorer
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
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