I can\'t get protractor to work with IE 11 on Windows 10. It says Unable to create new service: InternetExplorerDriverService
and exists with code 199
I
The main thing that did it for me was renaming the downloaded file! npm/selenium downloaded C:\Users\my.username\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\IEDriverServer3.9.0.exe
out of desperation I removed the version, renaming it to IEDriverServer.exe
in the same folder; and that did the trick.
I also needed to get the security team to allow it to run, because of the nature of the environment for this project; this might not apply to everyone.
There are also a list of gotchas I found on the wiki; I didn't need to edit my registry (I don't have access to it anyway), so maybe leave that as a last resort.
Also from the Wiki https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
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. Important: Inside this key, create a DWORD
value named iexplore.exe with the value of 0.If you get an error saying
SessionNotCreatedError: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.
Then you will need to open IE and make sure the the setting is the same for all zones, that is it can be on for all or off for all, but must be the same. Probably best to try it with it on for all to begin with to reduce the risk from bad actors unrelated to the original issues.
In an enterprise environment this might need admin access, and/or it might need doing after every sign in/reboot as it seems it can be set by policy (But that is out of scope of my knowledge).