OpenQA.Selenium.DriverServiceNotFoundException: 'The chromedriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at http://chromedriver.storage.googleapis.com/ code example

Example: chromedriver = webdriver.Chrome(“D:\driver\chromedriver.exe”) doesnt work

"chromedriver = webdriver.Chrome(“D:\driver\chromedriver.exe”)" doesnt work for me 
so i found out if i use "driver = webdriver.Chrome(executable_path=r'DRIVER_PATH')"
 it works


from selenium import webdriver
driver = webdriver.Chrome(executable_path=r'D:\driver\chromedriver.exe')

Tags:

Misc Example