今天尝试使用selenium-ide的命令行模式来运行ide录制的脚本,在terminal执行脚本时出现错误:
selenium-side-runner .\login.side
The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver fro
m http://chromedriver.storage.googleapis.com/index.html and ensure it can be found on your PATH.
解决方法:
- 需要下载对应版本的chromedriver.exe放到chrome的安装路径中
- 在环境变量Path中添加chromedriver的路径
3. 重启 terminal 即可