Error Message: ‘chromedriver’ executable needs to be PATH

While working with Selenium v3.x, ChromeDriver and Chrome Browser you may need to pass the argument executable_path along with the absolute path of the ChromeDriver binary through either of the following options:

  • Double back slashes i.e. (\\)
  • Single back slash i.e (\) along with the raw (r) switch.
  • Binary extension i.e. (.exe)

So you have to change the line :

browser = webdriver.Chrome("C:Users/Colin/Python/chromedriver")

With :

browser = webdriver.Chrome(executable_path=r'C:\Users\Colin\Python\chromedriver.exe')

Leave a Comment