解決selenium-ide 命令行模式無法啓動Chrome的問題

今天嘗試使用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.
在這裏插入圖片描述
解決方法:

  1. 需要下載對應版本的chromedriver.exe放到chrome的安裝路徑中
    在這裏插入圖片描述
  2. 在環境變量Path中添加chromedriver的路徑

在這裏插入圖片描述
3. 重啓 terminal 即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章