I am trying to use the Selenium Internet Explorer
driver but it is breaking when I try to instantiate it:
[TestInitialize]
public void TestInitialise() {
ieDriver = new InternetExplorerDriver();
}
with the following error:
Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver).
I have found an apparent solution to my problem here, which suggests setting the driver's DesiredCapabilities
, as shown:
var capabilitiesInternet = new OpenQA.Selenium.Remote.DesiredCapabilities();
capabilitiesInternet.SetCapability("ignoreProtectedModeSettings", true);
IWebDriver webDriver = new InternetExplorerDriver(capabilitiesInternet);
The only problem is, I am using the latest version of the driver that I could find, and there is no override for InternetExplorerDriver
that takes DesiredCapabilities
as a parameter.
Is there some new or other way of setting DesiredCapabilites
now instead of the example that I used?