1

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?!

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
tester
  • 3,977
  • 5
  • 39
  • 59
  • 1
    Have you tried killing the currently running hub and then restarting it again? – Zack Macomber Jan 04 '12 at 13:31
  • Is this question a duplicate of the following question? - http://stackoverflow.com/questions/23023399/error-communicating-with-the-remote-browser-it-may-have-died-selenium-web-driv/25497994#25497994 – Nick Grealy Aug 26 '14 at 04:23

3 Answers3

0

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?

banterCZ
  • 1,551
  • 1
  • 22
  • 37
0

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

Community
  • 1
  • 1
Pavel Janicek
  • 14,128
  • 14
  • 53
  • 77
0

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
Nick Grealy
  • 24,216
  • 9
  • 104
  • 119