Internet Explorer protected mode error Internet Explorer protected mode error selenium selenium

Internet Explorer protected mode error


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.


Just to add to the already correct answers, if setting all values the same is not an option, (Need security disabled is some zones, but want to keep security enabled in others) you can also initialize your driver with the overload that includes InternetExplorerOptions, and use

new InternetExplorerOptions() { IntroduceInstabilityByIgnoringProtectedModeSettings = true}