Selenium 无法在 Windows 7 上启动 IE8

发布于 2024-10-07 17:19:00 字数 203 浏览 0 评论 0原文

我有 Windows 7 32 位和 IE 8 32 位。当我尝试使用 *iexplore 运行测试时,我得到一个空白窗口。然而,当我在 XP 和 IE 7 中运行测试时,测试执行得很好。请看下图。

alt text

有什么补救措施吗?

谢谢

I have windows 7 32 bit and IE 8 32 bit. When I try to run the tests using *iexplore, I get a blank window. However, when I run the tests in XP and IE 7, the tests execute perfectly. Please see the image below.

alt text

Any remedies ?

Thanks

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

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

发布评论

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

评论(3

稀香 2024-10-14 17:19:00

您是否尝试过以管理员身份启动 Selenium-RC 服务器?

Have you tried starting Selenium-RC server as administrator?

淡笑忘祈一世凡恋 2024-10-14 17:19:00

好吧我解决了这个问题。事实上,在 Windows 7 中,无法在 IE 8 中运行 Selenium 测试。但是,有一个解决方法。转到 IE 8,工具->兼容性视图设置
然后选中在兼容性视图中显示所有网站

现在,如果您在代码中输入 *iexplore,它将在浏览器中完美运行。

希望这有帮助

Alright I solved this issue. The fact is In windows 7, it is not possible to run selenium tests in IE 8. However, there is a workaround. Go to IE 8, Tools->Compatibility view Settings
and then check the Display all sites in compatibility view.

Now if you type *iexplore in your code, it will run perfectly in the browser.

Hope this helps

天赋异禀 2024-10-14 17:19:00

如果您使用的是 Windows 7 专业版或旗舰版,请查看此内容。

http://www.microsoft.com/windows/virtual-pc/default.aspx

在虚拟机中运行所有版本 8 以下的 IE!

干杯,
斯特凡

Check this out if you have Windows 7 Pro or Ultimate.

http://www.microsoft.com/windows/virtual-pc/default.aspx

Run all your IE below version 8 in a virtual machine instead!

Cheers,
Stefan

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