samedi 8 juillet 2017

Problems executing selenium on ubuntu server

I am trying to execute Selenium on ubuntu server but I have always problem with driverv version. I don't know more options to check it so I am here to try to solve this.

First the environment.

Maven : Apache Maven 3.3.9 Java : 1.8 Chrome : Google Chrome 59.0.3071.115 Chrome driver : ChromeDriver 2.30.477691

When I try to execute mvn clean test , the software returns the following error.

Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'ubuntu-2gb-lon1-01', ip: '127.0.1.1', os.name: 'Linux', os.a                                                                                                                                                                                               rch: 'amd64', os.version: '4.4.0-81-generic', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver

The simple java code is this

System.setProperty("webdriver.chrome.driver", "chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://google.es");
driver.quit();

Could anyone help to me to install a chromedriver version to solve this ? I think that I am not doing this correctly.

Regards !

Aucun commentaire:

Enregistrer un commentaire