I was using 2.53 selenium version and now I have changed my selenium version to 3.13.0. With this version change chromedriver is not getting initialized. In simple words chrome is not getting launched. But if I again change to selenium 2.53 then it works fine. I am using maven.
- Chrome browser version is 70
- Chrome driver version is 2.43
In pom.xml I changed below dependency version to 3.13.0: - selenium-java - selenium-server - selenium-chrome-driver - selenium-support
Any idea of this kind of issues. Let me know if you required more details
SeleniumWebdriver code:
public class SeleniumDriverSetup extends Thread {
public static WebDriver getDriver(String strBrowser) throws Exception
{
WebDriver driver = null;
ExcelUtils.setExcelFile(HelperMethods.getRunEngineFileName());
String OS = GlobalConstants.operatingSystem;
if(OS.equalsIgnoreCase("Windows")){
if(strBrowser.trim().toUpperCase().equals("CHROME"))
{
System.setProperty("webdriver.chrome.driver",GlobalConstants.librariesPath +"chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
System.out.println("***CHROME DRIVER HAS BEEN CREATED");
}
}
return driver;
}
}
I think, that this import:
Should be not 3.13.0 but 2.42 or 2.43 (these two versions support Chrome version 70).