I am a newbie to selenium web driver.I have a test written in java which is to be tested using Selenium web driver. I ran the test class as a java application.I wrote the following snippet of code to obtain the instance of the ChromeDriver. I get the following message for the following code snippet.
@Override
public WebDriver get() {
log.info("Creating Chrome driver");
try {
return new ChromeDriver(buildCapabilities());
} catch (IOException e) {
throw new ExceptionInInitializerError(e);
}
}
Also have the path to the ChromeDriver set
private static final String CHROME_DRIVER = "chromedriver.exe"; URL chromeDriverUrl = getClass().getResource("/" + CHROME_DRIVER); String pathToChromeDriver = chromeDriverUrl.getPath(); System.setProperty("webdriver.chrome.driver", pathToChromeDriver);
IMAGE:

Do not understand as to why the following message is displayed on the return new ChromeDriver(buildCapabilities()) line of code.