Selenium在IE测试中的问题
当我用下面这行代码把我的测试浏览器改成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服务器上运行的。
1 个回答
6
你怎么能在一个Ubuntu机器上用Selenium RC服务器启动IE浏览器呢?我记得所有通过Selenium RC服务器启动的浏览器实例都必须是在服务器本地的。所以如果你想用IE进行测试,就得在Windows电脑上运行这个服务器。这样说你明白了吗?