【问题标题】:org.openqa.selenium.remote.ProtocolHandshake createSession INFORMATION: Attempting bi-dialect session with Selenium Gridorg.openqa.selenium.remote.ProtocolHandshake createSession 信息:尝试使用 Selenium Grid 进行双语会话
【发布时间】:2019-02-21 12:08:38
【问题描述】:

我建立了一个本地硒网格来测试一些东西。连接到另一个网格时构建运行正常,但使用本地网格时构建会在此时停止:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running xxx.xxxxxxxxxxxx.xxx.xxxxxxxxxxx.XXXXXXXXXXXX
Sep 17, 2018 3:13:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end

根本没有错误消息。我无法使用 -X 和 -Dwebdriver.server.session.timeout=7200 实现任何目标

它只是挂在那里,我什么也没得到

【问题讨论】:

    标签: selenium firefox webdriver selenium-grid geckodriver


    【解决方案1】:

    此错误消息...

    org.openqa.selenium.remote.ProtocolHandshake createSession
    INFORMATION: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
    

    根据Attempting bi-dialect session, assuming Postel's Law holds true on the remote end thread 'webdriver dispatcher' panicked at 'index out of bounds: the len is 0 but the index is 0 的讨论,此问题可通过 2016-09-01 14:57:03 -0700 发布的 Selenium Client v3.0.0-beta3 重现使用 GeckoDriver

    Simon 在comment 中提到:

    根本原因是 ClassCastException。我们现在捕获该异常,记录我们尝试解析的内容并继续其他尝试以完成握手。 Selenium Client v3.0.0-beta4 中提供了该修复程序。

    解决方案

    • JDK升级到最新级别JDK 8u181
    • Selenium升级到当前级别Version 3.14.0
    • GeckoDriver升级到GeckoDriver v0.20.1级别。
    • GeckoDriver 存在于指定位置。
    • GeckoDriver 对非 root 用户具有可执行权限。
    • Firefox 版本升级到 Firefox v61.0.2 级别。
    • 清理你的项目工作区通过你的IDE重建你的项目只需要依赖。
    • 如果您的基础 Web Client 版本太旧,请通过 Revo Uninstaller 卸载它并安装最新的 GA 和发布版本的 Web Client
    • 进行系统重启
    • 以非 root 用户身份执行 Test

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-03
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多