【发布时间】:2011-04-12 21:30:08
【问题描述】:
当我使用以下代码行将 mt 测试浏览器更改为 IE 时:
self.selenium = selenium("localhost", 4444, "*iexplore", "http://www.mydomain.net/")
我收到以下错误:
Exception: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set!
使用 firefox 和 Chrome 可以完美运行。这是在 Ubuntu 服务器上运行的。
【问题讨论】:
-
SystemRoot 未设置?听起来太棒了。
-
您是使用 Wine 运行 IE 版本还是在虚拟机中运行 IE?
-
您解决了这个问题吗?如果是这样,你是如何解决的?您将系统根设置为什么?
标签: python internet-explorer ubuntu selenium