首页 > 系统服务 > 详细

selenium,在Eclipse中打开fireFox浏览器报错:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

时间:2017-02-15 19:00:15      阅读:263      评论:0      收藏:0      [点我收藏+]
1. 相信很多同学刚接触selenium时,在Eclipse中打开fireFox浏览器是报报错:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:。。。(异常代码太多此处省略)
 
在网上找了好多方法都是不能解决问题,结果是焦头烂额!
 
2.其实这是selenium的jar包和火狐浏览器不兼容,因为FireFox更新的非常快,解决方法有两个:
 
方法一:在selenium官网下载最新的jar包:
 
Selenium Jar 包下载地址:http://selenium-release.storage.googleapis.com/index.html
 
方法二:下载比较低的FireFox浏览器版本:
 
Firefox各版本下载地址:http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
 
另外说一下在http://www.seleniumhq.org/download/
 

技术分享

 

有selenium版本对应Firefox版本的说明,大家可以根据自己的版本查找下载。

selenium,在Eclipse中打开fireFox浏览器报错:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

原文:http://www.cnblogs.com/autobyme/p/6402543.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!