I downloaded the driver and I gave the exact path in my code but when I ran the code it shows me error
my code with java is as below:
System.out.prin
package Browser;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie.InternetExplorerDriver;
public class Hello {
public static void main(String[] args) {
// setting IEdriver property
System.setProperty("webdriver.ie.driver",
"paste the path of the IEDriverserver.exe");
WebDriver driver = new InternetExplorerDriver();
// launching the google home screen
driver.get("https://www.google.com/?gws_rd=ssl");
}
} //Hope this will work
Below steps are worked for me, Hope this will work for you as well,
then write below code in a java file and run
System.setProperty("webdriver.ie.driver","path of your IE driver exe\IEDriverServer.exe");
InternetExplorerDriver driver=new InternetExplorerDriver();
driver.manage().window().maximize();
Thread.Sleep(10100);
driver.get("http://www.Google.com");
Thread.Sleep(10000);
Additionally, "Enhanced Protected Mode" must be disabled for IE 10 and higher. This option is found in the Advanced tab of the Internet Options dialog.
How to do above steps???
Have look at this video: http://screencast.com/t/5nlxsrje4I . I have showed the steps.
Source: https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Required_Configuration
Hope this helps. Thank you :)
I've been firefighting with this issue for the past one month. And finally I found a fruitful solution. Here are the exact steps which we followed to get it worked. I have already done Required Configuration as mentioned in this link: https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration
Use these Desired Capabilities for your internet explorer driver
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability("requireWindowFocus", true);
capabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, false);
capabilities.setCapability("ie.ensureCleanSession", true);
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
capabilities.setCapability(InternetExplorerDriver.FORCE_CREATE_PROCESS, true);
webDriver = new InternetExplorerDriver(capabilities);
Use appropriate selenium version 2.53.1. I got it worked for the selenium version as mentioned in pom
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.1</version>
</dependency>
Download the IEDriverServer_x64_2.53.1.zip from the below link. Make sure its 2.53.1 http://selenium-release.storage.googleapis.com/index.html?path=2.53/
Now go to registry settings (regedit.exe)
for the current user (Don't open regedit
as an Administrator) and add TabProcGrowth for the below path in regedit
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
Right click on Main and add new DWORD (32 bit) and make it as 0. Remember I tried 64 bit with QWORD it didn't worked for me.
The key in this process is Step 2 which is Install IE Webdriver tool for windows
I didn't tried this method for Selenium latest version 3.0 but will give a try.
1---Enable protected mode for all zones You need to enable protected mode for all zones from Internet Options -> Security tab. To enable protected mode for all zones
Open Internet Explorer browser.
Go to menu Tools -> Internet Options.
Click on Security tab.
Select Internet from "Select a zone to view or change security settings" and Select(check) check box "Enable Protected Mode" from In the "Security level for this zone" block .
Apply same thing for all other 3 zones -> Local Internet, Trusted Sites and Restricted Sites
This setting will resolve error related to "Protected Mode settings are not the same for all zones.
2-- Set IE browser's zoom level 100%
Open Internet Explorer browser.
Go to menu View -> Zoom -> Select 100%
Below Code snippet will surely work:
InternetExplorerOptions ops = new InternetExplorerOptions();
// ops.ignoreZoomSettings(); -- Not necessarily in case 100% zoom.
ops.introduceFlakinessByIgnoringSecurityDomains(); -- Necessary to skip protected
mode setup
System.setProperty("webdriver.ie.driver",
<path>\\IEDriverServer.exe");
WebDriver dr = new InternetExplorerDriver(ops);