我试图让硒与goorm一起工作,但它不起作用。 我正在使用goorm IDE,这是一个云服务。
from selenium import webdriver
driver = webdriver.Chrome("C:Users/chromedriver.exe")
运行时,我收到以下消息: "chromedriver.exe"可执行文件需要位于 PATH 中。请参阅 https://sites.google.com/a/chromium.org/chromedri
检查以下内容:
driver = webdriver.Chrome("C:/Users/chromedriver.exe")
添加 chromedriver 的路径.exe在Path
中,这是在Environmental Variable
如果您使用的是Windows
- 右键单击
My Computer
并转到Properties
- 选择
Advanced system settings
- 转到选项卡
Advanced
- 点击
Environment Variables
- 在"
System Variables
"部分中搜索Path
变量 - 双击它并在其
value
列表中添加chromedriver.exe
的路径