1

我是机器人框架的新手。

我已将chromedriver.exe文件放在系统路径中。现在,当我在 RIDE 中运行脚本时,出现此错误:

WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

是否有任何其他方法可以在 RIDE 本身中设置路径?

更新:我的路径变量包括: C:\Driver\chromedriver.exe;

4

2 回答 2

5

如Robot框架安装指南中所述,如何设置环境变量。将 chrome 驱动程序放在路径“C:\Python\Scripts”中,并确保在环境变量中更新此路径“C:\Python\Scripts”。如果您有任何澄清,请检查以下链接。在标题设置路径下视窗

https://github.com/robotframework/robotframework/blob/master/INSTALL.rst

于 2016-11-29T11:27:50.160 回答
1

从官网下载Chromedriver.exe,解压.exe文件并将这个.exe文件复制到Python安装的scripts文件夹中,例如C:\Python36\Scripts

在此之后,将此脚本路径添加到环境变量中

于 2020-04-19T07:35:09.807 回答