Element click not functioning properly using selenium in IE 10 Element click not functioning properly using selenium in IE 10 selenium selenium

Element click not functioning properly using selenium in IE 10


Try the below.

driver.findElement(By.id("searchMovielanding")).sendKeys(KEYS.ENTER);

In IE, some times click does not work.


This is actually a defect in the Selenium InternetExplorerDriver and they are not currently planning to address it. The link also has some suggested workarounds. However they did not work too well for me. I'll update if I can find anything.https://code.google.com/p/selenium/issues/detail?id=4403


The below trick worked for me. Add the code snippet where browser selection

// Setting attribute native Events to false enable click button in IEDesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability("ignoreZoomSetting", true);caps.setCapability("nativeEvents",false);WebDriver driver = new  InternetExplorerDriver(caps);