Selenium RC 和 IE 脚本错误 - 远程过程调用失败
我的测试设置由几个使用 Selenium RC 和 TestNG 在 IE6 中运行的 Java 测试用例组成。
在我的测试运行期间,随机出现以下 IE 脚本错误弹出窗口。当尝试通过单击“是”关闭此弹出窗口时,测试运行会挂起,我必须终止整个运行。
我尝试禁用弹出窗口阻止程序和 MDM 服务,但没有成功。
有任何指示导致这些错误的原因以及如何避免它们吗?
My Test setup consists of several Java test cases running in IE6 using Selenium RC and TestNG.
During my test runs, the following IE Script error popup comes randomly. Upon trying to dismiss this popup by clicking Yes, the test run hangs and I have to kill the entire run.
I have tried disabling popup blocker and the MDM service but without luck.
Any pointers to what causes these errors and how to go about avoiding them??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我从命令行运行我的硒测试,我发现“以管理员身份”运行命令 shell 解决了问题。
I'm running my selenium tests from the command line, and I found that running the command shell "as administrator" solved the problem.
我遇到了同样的问题,取消选中 ie 的“脱机工作”即可解决此问题。
I had the same problem and unchecking the "work offline" of ie fixed it.
我刚刚遇到了同样的问题。这篇文章有帮助: http:// manfredlange.blogspot.com/2009/11/ie8-and-selenium-rc-tests-wont-execute.html
因此以管理员权限运行 selenium 就不会出现此错误。如果您使用 Visual Studio(也许也与 Eclipse 或其他 Java IDE 相同)以管理员身份运行它并运行类似的测试。
I have just had the same problem. And this post helped: http://manfredlange.blogspot.com/2009/11/ie8-and-selenium-rc-tests-wont-execute.html
So run selenium with admin rights and then you will not get this error. If you use visual studio (maybe also the same with eclipse or other java IDE) run it as administrator and run the tests like that.