Selenium3 瀏覽器支援 WebDriver 下載地址整理

Selenium3 瀏覽器支援 WebDriver 下載地址整理

這篇文章主要彙整相關 Selenium 3對應的瀏覽器WebDriver,

從 Selenium 3 之後開始要求Firefox需要Geckodriver才可以運行

最後對於Windows平台, 筆者介紹一個一鍵安裝與升級所有瀏覽器WebDriver的方式

 

https://github.com/mozilla/geckodriver/releases

https://npm.taobao.org/mirrors/chromedriver

http://selenium-release.storage.googleapis.com/index.html

https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver

https://github.com/operasoftware/operachromiumdriver/releases

http://phantomjs.org/

 

Windows 一鍵安裝

這個方式主要透過Chocolatey 套件 https://chocolatey.org/

安裝Chocolatey的方式也很容易, 也是一鍵安裝 https://chocolatey.org/install

指令模式下, 用Admin 參考該說明剪貼複製安裝的命令即可

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

 

安裝完Chocolatey後就可以用下列方式一鍵安裝 Web Driver

choco install selenium-all-drivers

 

choco upgrade selenium-all-drivers

https://chocolatey.org/packages/selenium-all-drivers

Leave a Reply

Your email address will not be published. Required fields are marked *