[英]'chromedriver' executable needs to be in PATH - Python - Selenium (MAC)
I keep getting this error:我不断收到此错误:
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. selenium.common.exceptions.WebDriverException:消息:“chromedriver.exe”可执行文件需要在 PATH 中。 Please see https://chromedriver.chromium.org/home
请参阅https://chromedriver.chromium.org/home
My Script: (MAC)我的脚本:(MAC)
from selenium import webdriver
PATH='~ ABC$ /Users/ABC/Desktop/Chromedriver/chromedriver.exe'
driver = webdriver.Chrome(PATH)
driver.get("https://google.com")
What should I do?我应该怎么办? The Path is okay.
路径没问题。 I though there is something wrong with the format so I added ".exe" to file, but I am getting the same issue.
我虽然格式有问题,所以我在文件中添加了“.exe”,但我遇到了同样的问题。
Note: The browser and package version are the same (96)注:浏览器和package版本相同(96)
PATH should contain the Folder Path to your driver. PATH 应包含驱动程序的文件夹路径。
Having '~ ABC'
in your path makes it look for something in the ~ ABC
file which does not exsist as a parent file to /Users/
在你的路径中有
'~ ABC'
使它在~ ABC
文件中查找不作为/Users/
的父文件存在的东西
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.