本文共 526 字,大约阅读时间需要 1 分钟。
因为在用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下载页面 (需FQ) 各个版本的changelog中,会记录支持的firefox版本,如下所示:
里面可以找到对应的记录,仔细阅读即可。
我挑选的第一个匹配
v2.53.1=======Firefox: * Update to allow use with Firefox 47.0.1selenium-server-standalone-2.53.1.jarfirefox47
转载地址:http://kojab.baihongyu.com/