Firefox各版本兼容问题:
Selenium2不用装驱动可以向前支持火狐浏览器
根据Selenium2的版本安装相应版本的Firefox即可兼容。若selenium2的版本和firefox不兼容,需要升级selenium的jar包,或者是升级firefox。
切记:关掉forefox的升级功能,否则连本地Windows上的脚本都跑不起来,且必须降级firefox。升级后,selenium脚本正常启动firefox。
【Selenium】 -> 【FireFox】 2.25.0 -> 18 2.30.0 -> 19 2.31.0 -> 20 2.42.2 -> 29 2.44.0 -> 33 (不支持31,2014/12/1) 2.53.0 -> 43,46(不支持47) 2.41.0 -> 26(绿色版本) 2.44 -> 32.0-35.0 2.53.0-2.53.6 -> 40.0.3
各firefox版本下载地址
http://ftp.mozilla.org/pub/firefox/releases/
各selenium jar包下载地址
http://selenium-release.storage.googleapis.com/index.html
在selenium下载页面:http://www.seleniumhq.org/download/ (需FQ) 各个版本的changelog中,会记录支持的firefox版本
备注:selenium V3.0之前都不支持firefox47.0. 所以,如果你是seleniumV3.0以及之前的版本就不要下载ff47.0以及ff47.0之后的版本了。
http://ftp.mozilla.org/pub/firefox/releases/
各selenium jar包下载地址
http://selenium-release.storage.googleapis.com/index.html
在selenium下载页面:http://www.seleniumhq.org/download/ (需FQ) 各个版本的changelog中,会记录支持的firefox版本
备注:selenium V3.0之前都不支持firefox47.0. 所以,如果你是seleniumV3.0以及之前的版本就不要下载ff47.0以及ff47.0之后的版本了。
Selenium3 不向前支持火狐浏览器
Firefox v47以后版本直接运行会出现问题,要使用47.0以后的版本需要升级Selenium到3.x并安装对应版本的firefox驱动插件:geckodriver.exe
各种版本的geckodriver:https://github.com/mozilla/geckodriver/releases
从0.19.0版本的release notes可以看到建议使用的版本是:selenium3.5以上,Firefox55以上