`
m635674608
  • 浏览: 4929187 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

解决Selenium与firefox浏览器版本不兼容问题

 
阅读更多

因为在用Java打开firefox浏览器的时候报错

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

在网上查阅了说是兼容问题

然后就开始找selenium版本与对应firefox版本匹配的记录

各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版本,如下所示:

里面可以找到对应的记录,仔细阅读即可。

我挑选的第一个匹配

v2.53.1
=======

Firefox:
    * Update to allow use with Firefox 47.0.1


selenium-server-standalone-2.53.1.jar
firefox47
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics