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,810 points
1,940 views

1 answer 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,440 points

Related Questions In Selenium

0 votes
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,430 points
2,441 views
0 votes
1 answer

Double click a record in a grid using Selenium webdriver

Try Actions class to perform this Actions action ...READ MORE

answered Mar 29, 2018 in Selenium by Damon Salvatore
• 5,510 points
1,252 views
0 votes
1 answer
0 votes
1 answer

Java.lang.CharSequence cannot be resolved error while using sendKeys() using Selenium Webdriver

You could try this, myElement .sendKeys(new String[] { ...READ MORE

answered Apr 4, 2018 in Selenium by Johnathon
• 9,090 points
797 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,430 points
1,190 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,510 points
1,274 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,510 points
1,032 views
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8 in Selenium by Anvi
• 13,960 points
280 views
0 votes
1 answer
+9 votes
15 answers

How to automate gmail login process using selenium webdriver in java?

Check the below code: Here is the working ...READ MORE

answered Apr 24, 2018 in Selenium by Vardy
• 2,270 points
76,664 views