首页 > 其他 > 详细

Selenium和Firefox兼容问题

时间:2015-04-24 13:50:02      阅读:219      评论:0      收藏:0      [点我收藏+]

运行时遇到错误: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

 

后查询得知是两者不兼容引起的问题。解决方法有:

1.  cong

用winrar打开selenium-server.jar
查找两个目录:customProfileDirCUSTFFCHROME和customProfileDirCUSTFF
搜索每个目录,对每个文件install.rdf,编辑如下行
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.4.1</em:minVersion>
<em:maxVersion>3.5.*</em:maxVersion>
</Description>
</em:targetApplication>

<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.4.1</em:minVersion>
<em:maxVersion>3.6.*</em:maxVersion>
</Description>
</em:targetApplication>

Selenium和Firefox兼容问题

原文:http://www.cnblogs.com/yuanchunli/p/4453139.html

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