Friday, 23 March 2012

Unexpected error while launching Selenium SE

Unexpected error while launching Selenium SE


I have come across a error while setting up selenium tests on server using Internet Explorer v8.


The test has been failing with following error:

Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)

This caused me to wonder, as I know that i have the driver otherwise it would not work on my local PC.
After research i have found the solution. The privacy settings has to be updated.

Solution:
Go to your internet explorer => Tools (IE9 click alt to display menu) => Internet Options

Select Tab Security and un-tick "Enable protected mode" in all tabs. As far I understand the process, this will enable web driver to send commands into the browser.




IE security settings
Internet Explorer









 
You might have to ask you administrator to do this for you.