Phe*_*gan 1 python ubuntu selenium internet-explorer
当我使用以下代码行将mt测试浏览器更改为IE时:
self.selenium = selenium("localhost", 4444, "*iexplore", "http://www.mydomain.net/")
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Exception: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set!
Run Code Online (Sandbox Code Playgroud)
它使用firefox和Chrome完美运行.这是在Ubuntu服务器上运行的.
Selenium RC服务器(我猜你正在使用它)怎么可能在Ubuntu机器上启动IE实例?!IIRC由Selenium RC服务器启动的所有浏览器实例必须是服务器的本地实例.因此,如果要使用IE进行测试,则必须在Windows机器上运行SRC.说得通?!
| 归档时间: |
|
| 查看次数: |
1539 次 |
| 最近记录: |