Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
org.openqa.selenium.remote.ProtocolHandshake createSession信息:尝试使用selenium网格进行双方言会话_Selenium_Firefox_Webdriver_Selenium Grid_Geckodriver - Fatal编程技术网

org.openqa.selenium.remote.ProtocolHandshake createSession信息:尝试使用selenium网格进行双方言会话

org.openqa.selenium.remote.ProtocolHandshake createSession信息:尝试使用selenium网格进行双方言会话,selenium,firefox,webdriver,selenium-grid,geckodriver,Selenium,Firefox,Webdriver,Selenium Grid,Geckodriver,我建立了一个本地selenium网格来测试一些东西。连接到另一个网格时,生成正常运行,但使用本地网格时,生成仅在此点停止: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running xxx.xxxxxxxxxxxx.xxx.xxxxxxxxxxx.XXXXXXXXXXXX Sep 17, 201

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

-------------------------------------------------------
 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实现任何功能

它只是挂在那里,我什么也没有收到这个错误消息

org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
根据讨论,该问题可通过2016-09-01 14:57:03-0700发布的硒客户端v3.0.0-beta3GeckoDriver复制

西蒙在一篇文章中提到:

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

解决方案
  • 将JDK升级到最新级别
  • 将硒升级到当前水平
  • 将GeckoDriver升级至标高
  • GeckoDriver位于指定位置
  • GeckoDriver对非root用户具有可执行权限
  • 将Firefox版本升级到Firefox v61.0.2级别
  • 通过IDE清理项目工作区,并仅使用所需的依赖项重建项目
  • 如果您的基本Web客户端版本太旧,请通过卸载它并安装最新的GA和Web客户端发布版本
  • 重新启动系统
  • 以非root用户身份执行
    测试