May 22, 2012

Error while running webdriver tests in IE

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.


4 comments:

  1. thanks sir for the info.
    Can you also post something on selenium grid as well

    ReplyDelete
  2. How other browsers like firefox and chrome ??

    Thanks in advance

    ReplyDelete
  3. Does your site have a contact page? I'm having a tough time locating it but, I'd like
    to send you an e-mail. I've got some recommendations for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it grow over time.
    Also visit my website :: how to play piano

    ReplyDelete
  4. I could not resist commenting. Well written!
    Here is my webpage :: www.youtube.com

    ReplyDelete