Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Problem

When running a Charlotte task that uses internet explorer as the browser, it fails with the exception "org.openqa.selenium.remote.SessionNotFoundException: 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. (WARNING: The server did not provide any stacktrace information)"

Started InternetExplorerDriver server (64-bit)
2.39.0.0
Listening on port 17143
[INFO] Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
[INFO] Falling back to original OSS JSON Wire Protocol.
[INFO] Falling back to straight W3C remote end connection
[INFO] Exit code: 1
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}], required capabilities = Capabilities [{}]
Build info: version: '3.0.1', revision: 'unknown', time: 'unknown'
System info: host: 'WIN-NBU2QV4TR4V', ip: '172.30.3.132', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_65'
Driver info: driver.version: InternetExplorerDriver
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:227)
        at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:180)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:172)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:160)
        at jp.vmi.selenium.webdriver.IEDriverFactory.newInstance(IEDriverFactory.java:50)


Solution

Set the "Enable Protected Mode" to the same value for all zones

  1. Navigate to "Tools > Internet Options"
  2. Click on the "Security" tab
  3. Make sure that each of the four zones (Internet, Local intranet, Trusted sites, Restricted sites) are all the same value

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.