VAIBHAV SINGH
Selenium Issues

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)

There are two solutions for this issue.

Solution 1:

1 - open internet explorer. Go to Tools->Internet Options->Security Tab
2 - Uncheck all Four Protected Mode (Internet, Local internet, Trusted sites, Restricted sites)
3 - Apply this settings. A Warning Pop will shown with The current security settings will put your computer at risk. message. Ok that popup and try again.

Solution 2:

For this solution We need to use DesiredCapabilities. You can Check below code.


Read Our Article for more infromation regarding Protected Mode