-2

I'm new with Selenium and I have this error:

WebDriverException: WebDriverException: Message: 'chromedriver' executable needs to be in PATH

What this error means and how to fix it?

KunLun
  • 3,109
  • 3
  • 18
  • 65
  • 1
    Usually that error means that you are not specifying the path of the `chromedriver`. Can you please attach the code which gives you that error? – KunLun Jul 16 '21 at 14:39
  • Does this answer your question? [Error message: "'chromedriver' executable needs to be available in the path"](https://stackoverflow.com/questions/29858752/error-message-chromedriver-executable-needs-to-be-available-in-the-path) – Prophet Jul 16 '21 at 14:42
  • 1
    Please do minimal google search before asking widely asked questions – Prophet Jul 16 '21 at 14:42

1 Answers1

2

This happens when the path for the chromedriver.exe file is wrong. The chromedriver.exe file can be stored in your local. Suppose the .exe file is in the C: drive → Chromedriver folder, this would be the correct path:
"C:\Chromedriver\chromedriver.exe"

driver = webdriver.Chrome(executable_path="C:\Chromedriver\chromedriver.exe")
Maximouse
  • 4,170
  • 1
  • 14
  • 28
pmadhu
  • 3,373
  • 2
  • 11
  • 23