Problem while using InternetExplorerDriver in Selenium WebDriver

0 votes

I downloaded the Internet Explorer driver and I gave the correct path while writing it in code. Still, I am getting the error with this driver

Java Code:-


System.setProperty("webdriver.ie.driver","D:\\Selenium\\Drivers\\IEDriverServer.exe");
driver = new InternetExplorerDriver();
navigate = new WebDriverBackedSelenium(driver, "http://www.facebook.com/");

The error message is:

org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.15 seconds

Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Apr 18, 2018 in Selenium by DareDev
• 6,890 points
• 13,070 views

2 answers to this question.

0 votes
In order to use IE Driver you need to do some settings, which is shown as follows:-

1. Open your IE browser

2.Go to Tools > Internet Options > Security

3.Set the "Internet, Local intranet, Trusted sites, Restricted sites" to protected mode, enabling or disabling it is not a matter

4. Set the Zoom level to 100% by right-clicking on the settings icon located at the top right corner and enabling the status-bar.

Hope this will help you out.
answered Apr 18, 2018 by Meci Matt
• 9,460 points
0 votes
enable trusted connection  in internet explorer by using settings