Software⏱️ 3 min read📅 2026-06-03

How to Fix: Error message: "'chromedriver' executable needs to be available in the path"

Selenium chromedriver executable path issue resolved by adding to system environment variables.

Quick Answer: The error occurs because the chromedriver executable is not in the system's PATH variable. To resolve this, add the path to the chromedriver executable to the system's PATH variable.

Error message: "chromedriver" executable needs to be available in the path affects users who are using selenium with python and have downloaded the chromedriver for their windows computer. This error occurs when the system cannot find the chromedriver executable in the specified path.

This issue is frustrating because it prevents users from running their selenium tests successfully. However, we will provide a step-by-step guide to resolve this issue.

⚠️ Common Causes

  • The primary reason why this error happens is that the system environment variable "Path" is not correctly set. The chromedriver executable needs to be added to the system path so that the operating system can find it.
  • Alternatively, if you have downloaded the zip file and unpacked it to your downloads folder, but did not add the path to the executable binary to the environment variable "Path", then this is also a possible cause of the error.

🛠️ Step-by-Step Verified Fixes

Adding the chromedriver executable to the system path

  1. Step 1: Right-click on the Start button and select System.
  2. Step 2: In the System window, click on Advanced system settings on the right side.
  3. Step 3: Click on Environment Variables.
  4. Step 4: Under System Variables, scroll down and find the Path variable, then click Edit.
  5. Step 5: Click New and enter the path to the chromedriver executable (C:\\\\chromedriver_win32).
  6. Step 6: Click OK on all windows to close them.

Moving the chromedriver executable to a directory in the system path

  1. Step 1: Create a new directory in your preferred location, for example C:\chromedriver.
  2. Step 2: Move the chromedriver executable (C:\\\chromedriver_win32) to this new directory.
  3. Step 3: Right-click on the Start button and select System.
  4. Step 4: In the System window, click on Advanced system settings on the right side.
  5. Step 5: Click on Environment Variables.
  6. Step 6: Under System Variables, scroll down and find the Path variable, then click Edit.
  7. Step 7: Click New and enter the path to the new directory (C:\\\\chromedriver).
  8. Step 8: Click OK on all windows to close them.

✨ Wrapping Up

By following these steps, you should be able to resolve the error message "chromedriver" executable needs to be available in the path and run your selenium tests successfully.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions