本文介绍了org.openqa.selenium.remote.ProtocolHandshake createSession信息:尝试使用Selenium Grid进行双向对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了一个局部的硒网格来测试某些东西.当连接到另一个网格时,构建可以正常运行,但是当使用本地网格时,构建就在此时停止:

I set up a local selenium grid to test something. The build runs normal when connecting to another grid but when using the local grid the build just stops at this point:

-------------------------------------------------------
 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实现任何事情

No error message at all. I wasn't able to achieve anything with -X and -Dwebdriver.server.session.timeout=7200

它只是挂在那儿,我什么也没收到

It just hangs there and I get nothing

推荐答案

此错误消息...

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

根据讨论尝试双向对话,假设Postel法则在远端适用线程"webdriver dispatcher"在索引超出范围时感到恐慌:len为0但索引为0 此问题在上发布的 Selenium Client v3.0.0-beta3 中可重现2016-09-01 14:57:03 -0700 GeckoDriver .

As per the discussion 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 this issue was reproducible with Selenium Client v3.0.0-beta3 released on 2016-09-01 14:57:03 -0700 with GeckoDriver.

Simon在评论中提到:

Simon in a comment mentioned that:

解决方案

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

    • Upgrade JDK to recent levels JDK 8u181.
    • Upgrade Selenium to current levels Version 3.14.0.
    • Upgrade GeckoDriver to GeckoDriver v0.20.1 level.
    • GeckoDriver is present in the specified location.
    • GeckoDriver is having executable permission for non-root users.
    • Upgrade Firefox version to Firefox v61.0.2 levels.
    • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
    • If your base Web Client version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Web Client.
    • Take a System Reboot.
    • Execute your Test as a non-root user.
    • 这篇关于org.openqa.selenium.remote.ProtocolHandshake createSession信息:尝试使用Selenium Grid进行双向对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 19:13