我在Vista和IE8上遇到类似的问题,但会收到相同的错误消息
Couldn't open app window; is the pop-up blocker enabled?"
以管理员身份运行我的遥控器不是我的选择,而且从安全角度来看也是一个糟糕的主意。因此,最后我设法通过将浏览器从“ * ietha”更改为“ *iexploreproxy” grid_configuration.yml来解决了这个问题
hub: port: 4444 ... - name: "Internet Explorer 8 on Vista" browser: "*iexploreproxy" ...
另外,您可以从代码中更改浏览器字符串:
ISelenium selenium = new DefaultSelenium("localhost", 4444, "*iexploreproxy", "http://www.google.com/");奇迹般有效。剩下的唯一问题是这是否会以某种方式影响测试用例的结果。到目前为止,还没有,但我将更新此答案,以防万一。



