Search code examples
javaseleniumgoogle-chromeselenium-webdriverwebdrivermanager-java

Linux IntelliJ Chrome WebDriverManager "chrome (or any other browser) failed to start"


I have a problem with WebDriverManager.

If I specify path to the downloaded chromedriver I get this link

org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /home/ja/.m2/repository/webdriver/chromedriver/linux64/73.0.3683.20/chromedriver is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Edit 1. If I have installed chrome it works.

Edit 2. Problem occurs only when browser I want to test on isn't installed.

Edit 3. (browser)Driver downloaded by WebDriverManageris working if I run it through terminal (Linux terminal and IntelliJ terminal).

Edit 4. Turns out I'm just stupid. I thought WebDriverManager let you run tests on browsers you dont have installed. That would be pretty awesome though...


Solution

  • It seems you are using an old version of WebDriverManager. Try with the latest, since as of WebDriverManager 3.x the downloaded version of chromedriver is not the latest by default, but the proper version for your Chrome browser.