Printer FriendlyEmail Article Link

iTest: How to overcome “Protected Mode“ issue while replaying selenium testcases using Interent Explorer.

Environment/Versions
  • Spirent iTest
Answer

Sometimes we will get the following error while replaying selenium testcases using Internet Explorer.

DeclareExecutionIssue Error:Error attempting to open connection to external browser: 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) Command duration or timeout: 1.14 seconds Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_17' Driver info: org.openqa.selenium.ie.InternetExplorerDriver

The problem is due to IE security settings.

Following settings will be helpful to overcome this issue:

  1. Open Internet Explorer.

  2. From the Internet Explorer command bar, choose Tools and then Internet Options.

  3. In the Internet Options window, click on the Security tab.

  4. Enable Protected Mode checkbox for all zones.

  5. Restart IE browser.


Product : Velocity Portfolio,Velocity iTest