Turning of Protected Mode settings in Internet Explorer

To turn off Protected Mode Settings in IE for different Zones, we can use the code below and launch it as when the Browser is launched.This is essential because when we are running from Jenkins we may run into scenario where IE on the Jenkins might not have protected mode turned off

 

//Choosing as options
var options = new InternetExplorerOptions()
{
     //InitialBrowserUrl = baseURL,
     IntroduceInstabilityByIgnoringProtectedModeSettings = true,
     IgnoreZoomLevel = true,
     EnableNativeEvents = false
};
Browser = new InternetExplorerDriver(options);

 

You may also like...