简体   繁体   English

Webdriver:Firefox驱动程序不再起作用

[英]Webdriver: Firefox driver doesn't work anymore

I created webdriver project with maven. 我用maven创建了webdriver项目。 Everything was fine, but one day my tests throw an exception while they running in Firefox. 一切都很好,但有一天我的测试在Firefox中运行时抛出异常。 My Firefox version is 11 at this moment. 我的Firefox版本目前是11。

In my pom file i tried to change versions, but tests still don't work: -Error communicating with the remote browser. 在我的pom文件中,我试图更改版本,但测试仍然不起作用: - 与远程浏览器通信时出错。 It may have died. 它可能已经死了。 Or -Cannot perform native interaction: Could not load native events component. 或者 - 无法执行本机交互:无法加载本机事件组件。

Please, help with this issue. 请帮忙解决这个问题。

I would recommend using Firefox 3.6, 9 or 10, because WebDrivers 2.19.0 and 2.20.0 (today's version) are not yet compatible with Firefox 11. 我建议使用Firefox 3.6,9或10,因为WebDrivers 2.19.0和2.20.0(今天的版本)还不兼容Firefox 11。

The official changelog says that version 2.19.0 enables native events in FF10. 官方更新日志说版本2.19.0启用FF10中的本机事件。 Also, the version 2.15.0 announces support for FF up to and including FF11. 此外,版本2.15.0宣布支持FF,包括FF11。 Seems that something got wrong there :). 似乎那里出了问题:)。 Downgrade to FF10 or similar and you should be good. 降级到FF10或类似,你应该是好的。

我升级到Selenium WebDriver 2.25.0,我的测试又恢复了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM