[英]Selenium - Chromedriver filenotfound error message
I am trying to use selenium to test a webpage I am building.我正在尝试使用 selenium 来测试我正在构建的网页。 I downloaded chrome driver and placed the executable in the path below.
我下载了 chrome 驱动程序并将可执行文件放在下面的路径中。 I know the path is correct.
我知道路径是正确的。
driver = webdriver.Chrome(executable_path=r'C:\Python\chromedriver.exe')
What can I do to address this or what am I missing?我能做些什么来解决这个问题或我错过了什么?
Try calling the file without the ".exe" extension.尝试调用不带“.exe”扩展名的文件。 I use chromedriver but I never need to call the extension.
我使用 chromedriver,但我从不需要调用扩展。
driver = webdriver.Chrome('C:\Python\chromedriver')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.