一、 查看Chrome版本
打開Chrome瀏覽器,網址欄輸入chrome://version/;查詢當前Chrome版本
二、下載chromedriver.exe驅動
注意:上圖可以看到安裝的Chrome瀏覽器版本為79.0.3945.88 (正式版本),打開如下網址,按版本下載相應驅動版本,具體操作步驟見下圖
- 下載地址1:http://npm.taobao.org/mirrors/chromedriver/
- 下載地址2:http://chromedriver.storage.googleapis.com/index.html
三、其他瀏覽器驅動下載
- Firefox瀏覽器驅動下載地址:https://github.com/mozilla/geckodriver/releases/
- IE瀏覽器驅動下載:http://selenium-release.storage.googleapis.com/index.html