Chrome driver
Go to chromedriver.storage. googleapis.com/index.HTML
Go to latest folder
Download required zip file chromedriver_win32.zip
For internet explorer download 32 or 64 bit depending on configuration of OS
Selenium is not supporting IE11 may or may not work
Unzip and copy the exe file in required location
Update the selenium code as shown below
Go to latest folder
Download required zip file chromedriver_win32.zip
For internet explorer download 32 or 64 bit depending on configuration of OS
Selenium is not supporting IE11 may or may not work
Unzip and copy the exe file in required location
Update the selenium code as shown below
Psvm(String[] args)
{ System.setProperty("webdriver. chrome.driver","e:/ IEDriverServer.exe/ chromedriver.exe
);// use relative path of Java project folder don't give absolute path
as it may not work in other computers and not as per standards. And the
dot represents path of current Java project folder.
WebDriver driver = new InternetExplorerDriver();
driver.get("HTTP://google.com" );
String title = driver.getTitle();
System.out.println(title);
}
{ System.setProperty("webdriver.
WebDriver driver = new InternetExplorerDriver();
driver.get("HTTP://google.com"
String title = driver.getTitle();
System.out.println(title);
}
Note: ensure that browser zoom level of IE is 100% or else we get session not found exception. Control + 0
Ensure that enable protected mode.check box is selected in all the four zones - Internet options - security - check in all tabs.
Ensure that enable protected mode.check box is selected in all the four zones - Internet options - security - check in all tabs.