0
driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")

WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

P.S - Both selenium and chrome drivers are up to-date.I can't understand Why is this error occurring.

2
  • Are you using the correct chrome driver version?
    – PDHide
    Apr 7, 2021 at 12:44
  • I am using google colab and the chrome driver version is latest version. Apr 8, 2021 at 4:26

1 Answer 1

0

You can use Google-Colab-Selenium

!pip install google-colab-selenium

Then you can use Selenium as such:

import google_colab_selenium as gs


driver = gs.Chrome()

driver.get('https://www.google.com')
print(driver.title)
driver.quit()

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.