Selenium Script For IE

I got this error when running the selenium script for Internet Explorer 9.

Exception in thread "main" org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information); duration or timeout: 193 milliseconds 
+6
source share
3 answers

There is an error report dedicated to this issue: http://code.google.com/p/selenium/issues/detail?id=1795

If you enable protected mode in all zones of Internet Explorer (the "Security" tab in the IE settings), I believe that the problem is resolved.

+8
source
 DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer(); ieCapabilities.setCapability( InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true ); WebDriver dr = new InternetExplorerDriver(ieCapabilities); 
0
source

Source: https://habr.com/ru/post/898352/


All Articles