📌  相关文章
📜  selenium.common.exceptions.WebDriverException:消息:“chromedriver”可执行文件需要在 PATH 中.请参阅 https:sites.google.com a chromium.org chromedriver home - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:03.721000             🧑  作者: Mango

代码示例4
You can download ChromeDriver here: https://sites.google.com/a/chromium.org/chromedriver/downloads

Then you have multiple options:

add it to your system path
put it in the same directory as your python script
specify the location directly via executable_path

driver = webdriver.Chrome(executable_path='C:/path/to/chromedriver.exe')