简体   繁体   English

WebDriverException:WebDriverException:消息:“chromedriver”可执行文件需要在 PATH 中

[英]WebDriverException: WebDriverException: Message: 'chromedriver' executable needs to be in PATH

I'm new with Selenium and I have this error:我是 Selenium 的新手,我有这个错误:

WebDriverException: WebDriverException: Message: 'chromedriver' executable needs to be in PATH

What this error means and how to fix it?这个错误意味着什么以及如何修复它?

This happens when the path for the chromedriver.exe file is wrong.chromedriver.exe文件的路径错误时会发生这种情况。 The chromedriver.exe file can be stored in your local. chromedriver.exe文件可以存储在您的本地。 Suppose the .exe file is in the C: drive → Chromedriver folder, this would be the correct path:假设.exe文件在C:盘 → Chromedriver文件夹中,这将是正确的路径:
"C:\\Chromedriver\\chromedriver.exe"

driver = webdriver.Chrome(executable_path="C:\Chromedriver\chromedriver.exe")

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WebDriverException:消息:“ ChromeDriver可执行文件需要在路径中可用 - WebDriverException: Message: 'ChromeDriver executable needs to be available in the path selenium.common.exceptions.WebDriverException:消息:“chromedriver”可执行文件需要在 PATH 中 - selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH WebDriverException 消息:'chromedriver' 可执行文件需要在 PATH 中(在 mac M1 上出错) - WebDriverException Message: 'chromedriver' executable needs to be in PATH ( Error on mac M1) Selenium WebDriverException:消息:“ chromedriver.exe”可执行文件必须位于PATH中 - Selenium WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH WebDriverException:消息:'geckodriver'可执行文件需要在PATH中 - WebDriverException: Message: 'geckodriver' executable needs to be in PATH WebDriverException:消息:“chromedriver”可执行文件需要在 PATH 中,同时通过 Selenium Chromedriver python 设置 UserAgent - WebDriverException: Message: 'chromedriver' executable needs to be in PATH while setting UserAgent through Selenium Chromedriver python 为 Windows - selenium.common.exceptions.WebDriverException 安装 Chromedriver:消息:“chromedriver.exe”可执行文件需要在 PATH 中 - Installing Chromedriver for Windows - selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH selenium.common.exceptions.WebDriverException:消息:“chromedriver”可执行文件需要在无头 Chrome 的 PATH 错误中 - selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH error with Headless Chrome Gitlab CI 出现错误 selenium.common.exceptions.WebDriverException:消息:当我运行我的简单 pro 时,'chromedriver' 可执行文件需要在 PATH 中 - Gitlab CI got error selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH when I running my simple pro Selenium WebDriverException 'chromedriver.exe' 需要在 PATH 中 - Selenium WebDriverException 'chromedriver.exe' needs to be in PATH
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM