Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium WebDriver on IE11

I am using WebDriver for automating regression suite of our webapp, I have tried to get my test scripts functioning with IE11 but have not had any success.

I understand IEDriverServer.exe does not currently support WebDriver and the issue requires cooperation from Microsoft, I have tried the steps outlined in responses to Selenium issue #6511.

  1. (For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.

    For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Inside this key, create a DWORD value named iexplore.exe with the value of 0.)

  2. Protected mode settings are the same for all zones

  3. Enhanced Protected Mode is disabled.

But still when I execute my automation scripts in IE11, It is opening browser and getting below Exception

org.openqa.selenium.ElementNotVisibleException: Received a JavaScript error attempting to 
click on the element using synthetic events.We are assuming this is because the element 
isn't displayed, but it may be due to other problems with executing JavaScript. (WARNING:
The server did not provide any stacktrace
information)

Can anyone please help me in how to solve this issue. I need to execute my automation scripts in IE11.

Version Details:

  1. selenium-2.41.0

  2. InternetExplorerDriver server (32-bit) 2.40.0.0

  3. Windows 7 - 32 bit

like image 356
mra419 Avatar asked May 21 '14 12:05

mra419


People also ask

Does Selenium support IE11?

This driver has been tested with IE 11, and on Windows 10. It might work with older versions of IE and Windows, but this is not supported. The driver supports running 32-bit and 64-bit versions of the browser.

Can Selenium be used with Internet Explorer?

The Selenium IE Driver (also known as Selenium Internet Explorer Driver) is a stand-alone server that implements the WebDriver protocol. This server acts as a link between Selenium scripts and Internet Explorer.

Which IE driver is compatible with IE11?

141.0, Selenium v3. 141.5 and Selenium v3.


1 Answers

Microsoft has released the IE11 web driver

http://www.microsoft.com/en-us/download/details.aspx?id=44069

like image 189
TyMayn Avatar answered Nov 07 '22 05:11

TyMayn