I want to run WebDriver
test cases on Chrome
on a remote Ubuntu
server. I installed the latest Chrome
on this server, but I get these errors when I used this:
System.setProperty("webdriver.chrome.driver","/usr/bin/chromedriver"); driver = new ChromeDriver();
Error1:
The driver is not executable: /usr/bin/chromedriver
, to fix I made it executable using sudo 777 chromedriver
, then I got Error2:
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
, to fix this, I updated selenium jar dependencies
to 2.40.0
, and since then I get Error3:
java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices
Request: Now I know that HasInputDevices
been migrated to org/openqa/selenium/Interactions/
, and then why is it still looking for the path of the old org/openqa/selenium/HasInputDevices
. How to find it in your actual directory.
1. I have updated dependencies.
2. I tried using mvn install
to download what is written in pom.xml
but it looks in the old directory.
How to resolve this error, I do not want to lower the selenium APIs, because then Chrome unexpectedly quits.
source share