When I try to run the protractor scripts using IEWebdriver3.150 am getting Access denied Error as:
Error:
E/launcher - Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070005 ('Access is denied.') for URL 'http://localhost:40744/'
I tried to create a Registry FEATURE_BFCACHE and Enable Protected Mode enabled in all security Zones and browser zoom set to 100 %.
- Node Version : v14.16.1 ( Tried Latest Version as well)
- Protractor : 7.0.0
- Selenium : 3.141.59
- IE Web Driver :- 3.150.1
Configuration:
multiCapabilities: {
'browserName': 'internet explorer',
'ignoreProtectedModeSettings': true,
'platform': 'Windows',
'version': '11',
'browserVersion': '11',
'unexpectedAlertBehaviour': 'accept',
'ignoreZoomSetting': true,
'ie.ensureCleanSession': true,
'maxInstances': 4
}
This error message...
...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowsing Session i.e. internet-explorer browser session.
This issue is generally observed due to incorrect Protected Mode settings
Protected Mode
On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode.
@JimEvans in his article You're Doing It Wrong: IE Protected Mode and WebDriver clearly mentions :
Additionally, 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:
For 64-bit Windows installations, the key is:
Note The
FEATURE_BFCACHEsubkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.References
You can find a couple of relevant detailed discussions in: