在selenium+python環境下查看selenium版本方法:
cmd下輸入:pip show selenium
卸載selenium版本:
cmd下輸入:pip uninstall selenium
安裝selenium版本:
cmd下輸入:pip install selenium x.x.x(對應的selenium版本)
Selenium和Firefox瀏覽器的版本對應問題
firefox的driver是直接集成在了selenium中,這里討論的是selenium的ff的版本對應問題
selenium的官網(http://docs.seleniumhq.org/download/)上有一個叫“change log”的說明
點擊更改日志鏈接,進入到如下頁面,你可以看到每一個版本的修改日志
就可以知道你本地的selenium和ff版本對應關系
備注:selenium v3.0之前都不支持ff47.0.1,所以selenium V3.0以及之前的版本,就不要下載ff47.0.1以及之后的版本
chrome和chromedriver的版本對應問題
selenium中只包括了ff的driver,所以chromedriver需要單獨下載,下載地址在selenium官網中找.
官網中,找到driver的"change log"就可以,driver的修改日志里面一般第一行就會說明該driver所支持的chrome版本
地址:http://docs.seleniumhq.org/download/
點擊 更改日志 鏈接
各firefox版本下載地址
http://ftp.mozilla.org/pub/firefox/releases/