You're Doing It Wrong: IE Protected Mode and WebDriver There's a common problem most people run into with the Internet Explorer driver when they first start using it with IE 7 and above. Most people start by writing code that looks something like this, expecting it to work on a clean installation of Windows, or at least one with the default settings for Internet Explorer: WebDriver driver = new InternetExplorerDriver(); driver.get("http://seleniumhq.org"); driver.quit(); Imagine their surprise when they get an exception that looks something like this: 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) A careful reading of the exception's message tells one exactly what the problem is. People who don't bother to read the exception message then turn to their favori...
Comments
Post a Comment