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: