For Windows' IDE:
If your path doesn't work, you can try to add the chromedriver.exe
to your project, like in this project structure.
Then you should load the chromedriver.exe
in your main file. As for me, I loaded the driver.exe
in driver.py
.
def get_chrome_driver():
return webdriver.Chrome("..\\content\\engine\\chromedriver.exe",
chrome_options='--no-startup-window')
..
means driver.py's
upper directory
.
means the directory where the driver.py
is located
Hope this will be helpful.