Selenium fails to start Chromedriver Selenium fails to start Chromedriver selenium selenium

Selenium fails to start Chromedriver


Ok, so the solution is a bit weird.

I moved the Chromedriver binary from /opt/google/ (where Google Chrome is installed itself) to /opt/, updated the symlink and it's working now!

Compared to the question itself, these two lines of code solve the issue:

sudo mv /opt/google/chromedriver /opt/sudo ln -fs /opt/chromedriver /usr/local/bin/chromedriver

And now I am able to run the following Python code:

from selenium import webdriverbrowser = webdriver.Chrome()browser.get('http://www.google.com')

Chrome starts and everything.

The following line on the old Selenium docs page inspired me to check and eventually to change the Chromedriver location:

For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to be a symlink to the actual Chrome binary.


I don't know if this is the only issue you're having but chromedriver doesn't like "www.google.com", however it is fine with "http://www.google.com"