今天嘗試使用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 即可