10

InternetExplorer9をブラウザーとして使用してWindows7でSeleniumStandaloneServer 2.25を実行していますが、ブラウザーを開く必要があるすべてのテストでこのエラーが発生します。

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サーバーコンソールに表示されます。

4

6 に答える 6

26

Internet Explorerですべてのゾーンの保護モード設定を有効にすると、エラーは消えました([ツール]>[インターネットオプション]>[セキュリティ]タブ)。

于 2012-10-02T16:03:39.157 に答える
20

For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates.

For 32-bit Windows installations, the key you must examine in the registry editor is

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE

For 64-bit Windows installations, the key is

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE

Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0

Download the registry file from http://heliumhq.com/docs/internet_explorer.

See https://code.google.com/p/selenium/wiki/InternetExplorerDriver for this and more necessary IE configuration steps.

于 2014-06-18T08:30:39.060 に答える
2

My usual tactic is to individually add sites that require automated testing to 'trusted sites' in IE.

Go to Tools > Internet Options > Security then click Trusted Sites and the Sites button and individually add the website(s) needed.

Probably easier to get past your IT manager that way if you're locked down.

于 2012-11-29T15:54:35.350 に答える
0

I'm using Selenium at Eclipse and my solution for this trouble is run IDE as administrator

于 2016-09-07T01:53:06.400 に答える
0

i have added the url which i am trying to access in the Trusted Sites that way it worked for me after trying all the turnarounds

于 2017-05-08T08:29:16.320 に答える
-1

You must try this...

DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();

capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
System.setProperty("webdriver.ie.driver",IE_DRIVER_PATH);
driver = new InternetExplorerDriver(capabilities);
于 2015-09-01T06:40:09.920 に答える