Getting Error: 'chromedriver.exe' executable needs to be in PATH on a Mac in Jupyter NoteBook

Viewed 516

I know my query is very similar to other questions asked before, but I am working on a Jupyter NoteBook on a MacBook Air. My file chrome driver.exe is stored on desktop and download Can someone help me determine what is wrong with the code or path to file ?

My code lines are as follows and as show in the image:

from selenium import webdriver

PATH="users/aditisingh/desktop/chromedriver.exe"

driver=webdriver.Chrome(PATH)

enter image description here

1 Answers

Copy chromedriver.exe in the same directory as your Python script and run:

from selenium import webdriver

driver = webdriver.Chrome()
Related