Selenium RC 和 IE 脚本错误 - 远程过程调用失败

发布于 2024-08-18 07:53:27 字数 345 浏览 3 评论 0原文

我的测试设置由几个使用 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??

error screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

笑脸一如从前 2024-08-25 07:53:28

我从命令行运行我的硒测试,我发现“以管理员身份”运行命令 shell 解决了问题。

I'm running my selenium tests from the command line, and I found that running the command shell "as administrator" solved the problem.

刘备忘录 2024-08-25 07:53:28

我遇到了同样的问题,取消选中 ie 的“脱机工作”即可解决此问题。

I had the same problem and unchecking the "work offline" of ie fixed it.

爱你是孤单的心事 2024-08-25 07:53:27

我刚刚遇到了同样的问题。这篇文章有帮助: 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文