您的位置:首页 > 编程语言 > Java开发

自动化测试selenium-java FireFox运行版本不兼容

2014-10-15 19:43 393 查看
搭建环境为:selenium-java 2.41.0与fireFox3.0编写自动化案例时会出现错误;实验后可以通过selenium-java 2.41.0 与firefox4.0可以解决如下问题。部分代码如下:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:2572416 addons.xpi DEBUG Directory state JSON differs: cache [{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"D:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1413302015947,"rdfTime":1411526203000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Temp\\anonymous6974191073983918868webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1413302559220,"rdfTime":1413302556581},"cehomepage@mozillaonline.com":{"descriptor":"C:\\Temp\\anonymous6974191073983918868webdriver-profile\\extensions\\cehomepage@mozillaonline.com","mtime":1413302564086,"rdfTime":1411364160000},"cemigration@mozillaonline.com":所以通过selenium-java 2.41.0 与firefox4.0的搭配方式做处理
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: