带有Selenium的Firefox错误-无法访问死对象 [英] Firefox bug with Selenium - Can't access dead object

查看:120
本文介绍了带有Selenium的Firefox错误-无法访问死对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Selenium 2和Firefox 19运行测试.其中一个测试会导致错误错误:命令执行失败.错误消息是:无法访问死对象".

I've tried to run my tests with Selenium 2 and Firefox 19. One of this tests causes an error "ERROR: Command execution failure. The error message is: can't access dead object".

我正在阅读有关内容,它似乎是最新Firefox版本中的错误.很多人都有相同的问题,但是我还没有发现任何真正清楚的问题.

I'm reading about it, it seems like a bug in newest Firefox's versions. Lot of people have the same issue, but I've not found anything really clear.

任何英雄都能帮助我们吗?也许我们只需要更改"about:config"中的内容?

Any heroe can help us? Maybe we just need to change something in "about:config"?

致谢

推荐答案

尽管很多人似乎都遇到了同样的问题,但我对同一个问题感到绝望,也没有找到任何解决方案.

I was desperate about the same Problem and didn't find any solution although many people seemed to have the same problem.

我通过致电

webDriver.switchTo().defaultContent();

在调用任何findElement方法之前 (使用Java)

before calling any findElement method (using Java)

这篇关于带有Selenium的Firefox错误-无法访问死对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆