Security Message:“Protected Mode must be set to the same value (enabled or disabled) for all zones.”
Solutions 1:
Set manually the protected mode to the same value (enabled or disabled) for all zones in ‘Internet Options’ —> ‘Security’ Tab.
Solution 2:
Set a capability while instantiating IE driver, as shown below:
DesiredCapabilities capability=DesiredCapabilities.internetExplorer();
capability.setCapability(
InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_
IGNORING_SECURITY_DOMAINS, true);
WebDriver webdriver = new InternetExplorerDriver(capability);
No comments:
Post a Comment