InternetExplorerDriver may have died - Selenium issue
Asked Answered
H

3

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

Haustorium answered 4/1, 2012 at 13:26 Comment(2)
Have you tried killing the currently running hub and then restarting it again?Slender
Is this question a duplicate of the following question? - #23023899Sonorous
U
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?

Understudy answered 19/4, 2012 at 13:22 Comment(0)
E
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

Erotomania answered 19/4, 2012 at 13:29 Comment(1)
All browsers (IE, Firefox, and Chrome as well) crash.Understudy
S
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
Sonorous answered 26/8, 2014 at 4:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.