ChromeDriver Error: ‘chromedriver’ executable needs to be in PATH [duplicate]

From the error 'chromedriver' executable needs to be in PATH it seems like your chromedriver is not in the PATH environment variables. based on your OS check if chromedriver path exists in environment path variable.

Then try with below code: raw string with complete path of .exe of chromedriver.

from selenium import webdriver

driver = webdriver.Chrome(executable_path=r'C:\Users\Desktop\chromedriver_win64\chromedriver.exe') # complete path with .exe
driver.get('https://www.google.com')

Leave a Comment