selenium + firefox驱动版本对应。

1)selenium 2.51.0====firefox 46
selenium 3.11.0 ====firefox 56
后来发现最新的火狐浏览器好多插件都不能用了。所以果断回到46.对应的2。51。0的selenium版本总是安装不成功,后就改成2。51。1的selenim版本用了。
 
2) 查看当前selenium版本
cmd====>python ====》import selenium =====>help(selenium)
3)查看当前firefox浏览器的版本
右上角三杠,打开后,右下角的? “打开帮助菜单”,里面有关于firefox.
按alt键就出来火狐的菜单栏了,按alt+t 工具——选项——常规——firefox更新
 
 
 
2020/10/06
今天再用这个selenium 2.51.0====firefox 46,就不行了,之前本人亲用是可以的
最后参考了这篇文章:https://blog.csdn.net/yinshuilan/article/details/79730239
升级了我的selenium至2.53.0,就启动了firefox浏览器了。
总结:
1. 现在正确的匹配:selenium 2.53.0====firefox 46
2. 现在要想firfox浏览器不更新的办法是:安装完后,到安装目录下删除所有update开头的文件
3. selenium2不需要安装drvier就可以驱动firefox浏览器,但selenium3需要安装firefox driver插件才行(geckodriver.exe)。
4. selenium2启动chrome浏览器时,必须安装 chrome driver.
 
原文地址:https://www.cnblogs.com/yoyoma0355/p/9922646.html