[英]Chromedriver/Selenium issue
I am using pyCharm to create a script.我正在使用 pyCharm 创建脚本。 For the script I need chrome driver but keep receiving this error when running the program.
对于脚本,我需要 chrome 驱动程序,但在运行程序时不断收到此错误。 I have download chromedriver and selenium multiple times.
我已经多次下载了 chromedriver 和 selenium。 I am very very new to programing so any comments or help is much appreciated.
我对编程非常陌生,因此非常感谢任何评论或帮助。 The image below shows the code and the errors.
下图显示了代码和错误。
The problem's about the PATH of chrome_driver, you have to test if it is in the PATH Users/Aftaab/Downloads/chromedriver
or no!问题是关于chrome_driver的PATH,你必须测试它是否在PATH
Users/Aftaab/Downloads/chromedriver
或没有!
I believe that the correct PATH it's :我相信正确的 PATH 是:
C:/Users/Aftaab/Downloads/chromedriver + chromedriver.exe
try to find the correct PATH by yourself then passed it as a string in webdriver.Chrome
尝试自己找到正确的 PATH 然后将其作为字符串传递给
webdriver.Chrome
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.