InternetExplorerDriver may have died - Selenium is

2019-08-03 16:42发布

I am using Selenium Grid to start an InternetExplorerDriver-Instance remotely. Therefore I use the following code:

DesiredCapabilities capability = (DesiredCapabilities) DesiredCapabilities.internetExplorer();
RemoteWebDriver driver = new RemoteWebDriver(new URL(getHubUrl()), capability);

At the second line of code there is a WebDriverException saying

Error communicating with the remote browser. It may have died.

The remote machine is a Windows 7 system. I can't understand why this won't work?!

3条回答
地球回转人心会变
2楼-- · 2019-08-03 17:00

We have the same error on Windows 7 too but it works on Ubuntu.

What version of Selenium do you use, 2.20.0? Have you already tried to upgrade onto 2.21.0?

查看更多
成全新的幸福
3楼-- · 2019-08-03 17:09

Problem

I had the same problem running InternetExplorerDriver locally in Windows 7 - (IEDriverServer_Win32_2.42.0.zip)

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

When I checked the running processes under TaskManager, there were multiple IEDriverServer.exe processes running, that hadn't been cleaned up properly.

Solution

Running the following command, killed all running IEDriverServer.exe processes, and resolved this issue (for me).

taskkill /F /IM IEDriverServer.exe
查看更多
叛逆
4楼-- · 2019-08-03 17:24

Also, are you setting up the path to the InternetExplorerDriver? See this question here on SO - it helped me a lot launching the Google Chrome

查看更多
登录 后发表回答