当前位置: 首页 > 知识库问答 >
问题:

升级到3.9版本后无法启动Selenium IE驱动程序

廉展鹏
2023-03-14

堆栈跟踪如下:

结果StackTrace:在OpenQa.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)在OpenQa.Selenium.Remote.Remote.DriverServiceCommandExecutor.Execute(命令commandToExecute)在OpenQa.Selenium.Remote.RemoteWebDriver.Execute(命令commandToExecute)在OpenQa.Selenium.Remote.RemoteWebDriver.Execute(字符串在System.Net.PooledStream.Read(Byte[]buffer,Int32 offset,Int32 size)在System.Net.Connection.SyncRead(HttpWebRequest request,Boolean UserRetridedStream,Boolean probeRead)--System.Net.Sockets.SocketException(System.Net.Sockets.Socket.Receive(Byte[]buffer,Int32 offset,Int32 size,SocketFlags)在System.Net.Sockets.NetworkStream.Read(Byte[]

共有1个答案

伏建修
2023-03-14

在http://selenium-release.storage.googleapis.com上使用IEDRiverServer3.9.0.0 for Windows 64位,我可以用IEDRiverServer_X643.9.0重现这个问题。

错误堆栈跟踪:

Started InternetExplorerDriver server (64-bit)
3.9.0.0
Listening on port 28286
Only local connections are allowed
Exception in thread "main" org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:42:28.403Z'
System info: host: 'ATECHM-03', ip: '192.168.1.35', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.8.0_144'
Driver info: driver.version: InternetExplorerDriver
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
    at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:223)
    at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:215)
    at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:152)
    at demo.A_IE_simple.main(A_IE_simple.java:13)
Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:240)
    at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:158)
    at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:256)
    at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:134)
    at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:113)
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    at okhttp3.RealCall.execute(RealCall.java:77)
    at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:104)
    at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:54)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:101)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:138)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
    ... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at okhttp3.internal.platform.Platform.connectSocket(Platform.java:125)
    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:238)
    ... 29 more

虽然使用IEDRiverServer_Win32_3.9.0进行快速测试没有显示任何错误。虽然IEDRiverServer_Win32_3.9.0和IEDRiverServer_X64_3.9.0被发布,但从未明确推送/发布到SeleniumHQ.org页面的下载选项卡上。

The "major" and "minor" fields are synchronized to releases of the Selenium
project. Changes in the "build" field indicate interim releases made publicly
available via the project downloads page. Changes in "revision" field indicate
private releases checked into the prebuilts directory of the source tree, but
not made generally available on the downloads page.

此外,IEDRiverServer.exe V3.9.0.1的更改日志提到了以下免责声明:

Finally, there is every chance that, despite all efforts to the contrary,
it's possible that there are new regressions introduced by this change.
Multiple test suites have been run using this change, and none have
failed thus far due to the changes herein. Claims that this change is
causing a specific failure should be accompanied by a full test case, or
issues reported against this change will be summarily closed.

简单的解决办法是:

  • 在32位和64位平台上同时使用IEDRiverServer_Win32_3.9.0。
  • 还原回IEDRiverServer_X643.8.0
 类似资料:
  • 我正在处理一个spring boot应用程序,我想把从2.9.10.2升级到2.10.2。下面是我的pom.xml片段和升级依赖项后得到的错误: pom.xml: null

  • 我在周末将笔记本电脑从Kubuntu 12.04升级到12.10,一切看起来都很好,直到我重新开始工作。 笔记本电脑是一台通过php5 fpm运行Nginx和php的webdev机器,但现在看来php5 fpm不会启动。当我运行/etc/init时。d/php5 fpm重启我刚收到一条消息说失败。我在syslog或/var/log/fpm php中没有收到任何消息。www.log提供有关正在发生的

  • 我从Windows7升级到Windows10。在Bitnami堆栈中,MySQL正在运行,但我无法在Windows启动时启动Apache作为服务。我尝试过使用管理器工具。我尝试了很多方法,包括:将侦听端口和服务器名更改为8888,之后更改为8118,关闭Windows Defender,查看Apache的日志目录和错误目录中的文件(未找到任何条目),按下启动Bitnami Webstack按钮(只

  • 我已经使用ELS 1.4.1在Windows 7版本x64上成功安装了Elasticsearch。升级到Kibana 4 RTM后,需要ELS 1.4.4。 为了执行升级,我执行了以下步骤: 下载ELS 1.4.4 启动服务后,它会在几秒钟内停止。记录如下: (请注意,这是为了开发目的) 如果从命令提示符下运行elasticsearch,会出现以下错误:

  • 我在Windows 7虚拟机上安装了XAMPP。我的旧PHP版本是7.0.9,Apache 2.4 我需要将PHP版本升级到7.1.x,我开始阅读如何最好地做到这一点。最后,我选择了一个简单的计划: > 停止Apache服务 从PHP官方网站下载了新的PHP版本。对于PHP 7,列出了7.1.17版本。我下载了线程安全版本,因为我的Apache启用了线程安全。 我将下载的存档文件的内容提取到一个文

  • 自从在macOS上升级到Android Studio4.0后,我一直有这个问题。当我试图从Android Studio启动我的应用程序时,我会得到以下错误: 我的项目有一点独特之处在于,默认活动是在我的项目使用的另一个库的清单中定义的,而不是项目本身。在升级之前,这一切都很好,但现在不适合我。当我打开包含依赖项的项目时,它可以正常构建和运行。我已经尝试了以下步骤: 清理项目,重建 使缓存无效并重新