Like us on Facebook

LightBlog

May 22, 2012

Error while running webdriver tests in IE

May 22, 2012 4
While running tests in webdriver using internet explorer i got the following error.

org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information) 

The reason for this is in Internet Explorer Protected Mode must be set to the same value (enabled or disabled) for all zones. 

See the below image to understand this line. 

To handle this error: 

Go to Internet explorer---Click the setting gear icon----Internet Options---Security Tab



Check Enable Protected mode for all zones like Local Intranet, Trusted sites and Restricted sites.

Also, we have to Update the security level to low.

After doing the above setting you can easily run tests using internet explorer.