My code in Visual studio is using selenium webdriver 2.24.0. My testing framework I’m using is Nunit. My code worked just fine(loading diff. browsers, driving the websites) until version 2.24.0 was released.
I added the new IE standalone server to my project.
Now whenever I run my code NUnit encounters this error message.
FirstSeleniumTest.SeleniumTest.TestGoogle:
SetUp : System.InvalidOperationException : 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. (NoSuchDriver)
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
Then Command prompt pops up with this.
Started InternetExplorerDriver server (64-bit)
2.24.0.0
Listening on port 50329
I disabled protected mode on my IE. Still no luck.
How can I get my code back to proper webdriving?
You should ensure, that protected mode is either enabled or disabled for all 4 security zones (Internet, Local intranet, Trusted sites, Restricted sites).
In other words, the setting value should be the same for all security zones.