InternetExplorerDriver可能已经死了-硒问题 [英] InternetExplorerDriver may have died - Selenium issue

查看:319
本文介绍了InternetExplorerDriver可能已经死了-硒问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Selenium Grid远程启动InternetExplorerDriver-Instance.因此,我使用以下代码:

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);

在第二行代码中,有一个WebDriverException提示

At the second line of code there is a WebDriverException saying

与远程浏览器通信时出错.它可能已经死了.

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

远程计算机是Windows 7系统.我不明白为什么这行不通?!

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

推荐答案

问题

我在Windows 7中本地运行InternetExplorerDriver时遇到了同样的问题-(IEDriverServer_Win32_2.42.0.zip)

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.

当我在TaskManager下检查正在运行的进程时,有多个正在运行的IEDriverServer.exe进程尚未正确清理.

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

解决方案

运行以下命令,杀死所有正在运行的IEDriverServer.exe进程,并为我解决了此问题.

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

taskkill /F /IM IEDriverServer.exe

这篇关于InternetExplorerDriver可能已经死了-硒问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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