Selenium Server错误:无法获取浏览器 [英] Selenium Server error: Unable to get browser

查看:216
本文介绍了Selenium Server错误:无法获取浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7上运行Selenium Standalone Server 2.25,并使用Internet Explorer 9作为浏览器,并且在每次需要打开浏览器的测试中都遇到此错误:

I'm running Selenium Standalone Server 2.25 on Windows 7, with Internet Explorer 9 as a browser, and I'm getting this error for every test that requires opening the browser:

Selenium::WebDriver::Error::UnknownError:
       Unable to get browser (WARNING: The server did not provide any stacktrace information)
       Command duration or timeout: 10 milliseconds
       Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:08:56'
       System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_07'
       Driver info: driver.version: EventFiringWebDriver
       Session ID: 356e9fc8-2d2b-4808-964c-4a1fea7415f9 (org.openqa.selenium.WebDriverException)

我做错了什么?完全相同的信息出现在Selenium Server控制台上.

What am I doing wrong? The exact same information appears on the Selenium Server console.

推荐答案

为Internet Explorer中的所有区域启用保护模式"设置后,错误消失(工具">"Internet选项">安全"选项卡).

The error disappeared after enabling the Protected Mode settings for all the zones in Internet Explorer (Tools > Internet Options > Security tab).

这篇关于Selenium Server错误:无法获取浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆