Softwareโฑ๏ธ 3 min read๐Ÿ“… 2026-06-03

How to Fix: Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed

Selenium WebDriverException:Chrome failed to start: crashed

Quick Answer: The issue is likely due to the ChromeDriver not being able to find the running Chrome browser. Try updating ChromeDriver or reinstalling it, and ensure that the chromedriver executable path is correct.

The error 'Chrome failed to start: crashed' with the message '(unknown error: DevToolsActivePort file doesn't exist)' occurs when the Chrome browser is unable to launch properly using Selenium WebDriver. This issue affects users who have recently switched computers and are experiencing problems launching Chrome or Firefox browsers.

This error can be frustrating as it prevents users from accessing their desired web pages, causing delays in testing and development processes. In this troubleshooting guide, we will walk you through the steps to resolve this issue.

๐Ÿ’ก Why You Are Getting This Error

  • The primary reason for this error is that ChromeDriver is unable to establish a connection with the Chrome browser due to an issue with the DevToolsActivePort file. This can happen when the Chrome browser is not running or has crashed, leading ChromeDriver to assume that Chrome has crashed.
  • Another possible cause could be a misconfiguration of the ChromeDriver path or incorrect handling of the WebDriverException.

๐Ÿš€ How to Resolve This Issue

Update ChromeDriver

  1. Step 1: Step 1: Update ChromeDriver to the latest version using pip. Open your terminal and run the command `pip install --upgrade selenium`.
  2. Step 2: Step 2: Verify that the correct ChromeDriver path is being used by checking the WebDriverManager documentation or the Selenium documentation for more information.
  3. Step 3: Step 3: Try running the test again with the updated ChromeDriver version.

Verify ChromeDriver Path

  1. Step 1: Step 1: Verify that the ChromeDriver path is correct by checking the WebDriverManager documentation or the Selenium documentation for more information.
  2. Step 2: Step 2: Manually update the ChromeDriver path in your code to match the location of the latest ChromeDriver version on your system.

๐ŸŽฏ Final Words

By following these steps, you should be able to resolve the 'Chrome failed to start: crashed' error with Selenium WebDriver. Remember to always keep your dependencies up-to-date and verify that your ChromeDriver path is correct to avoid this issue in the future.

Did this fix your problem?

If not, try searching for specific error codes.

๐Ÿ” Search Error Database

โ“ Frequently Asked Questions