Start automated test selenium WebDriver Chrome


I am trying to start a test in Chrome with Selenium WebDriver but it does not progress from WebDriver driver = new ChromeDriver();

I am using maven version of Chrome Driver Selenium:


Class for the test

WebDriver driver;

public void prueba() {
    System.setProperty("", "C:Program Files (x86)/Google/Chrome/Application/chrome.exe");
    WebDriver driver = new ChromeDriver();
    System.out.println("CORRECTO 1");

public void tear() {
asked by Miguel D'Alessio 17.02.2016 в 23:26

1 answer


Try modifying the first line of your prueba() method by:

System.setProperty("", "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe");

Must be " chromedriver.exe " not " chrome.exe ", verify the correct path of the file.

answered by 18.02.2016 в 00:03