我建立了一个本地硒网格来测试一些东西。连接到另一个网格时构建运行正常,但使用本地网格时构建仅在此时停止:
-------------------------------------------------------
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
根据讨论尝试双方言会话,假设 Postel 定律在远程端线程“webdriver 调度程序”上成立,因“索引越界:长度为 0 但索引为 0”而惊慌失措 https://github.com/mozilla/geckodriver/issues/240这个问题可以重现Selenium 客户端 v3.0.0-beta3发布于2016-09-01 14:57:03-0700 with Gecko驱动程序.
西蒙在一个comment https://github.com/mozilla/geckodriver/issues/240#issuecomment-250234491提到:
根本原因是ClassCastException
。现在,我们捕获该异常,记录我们尝试解析的内容,并继续尝试完成握手。该修复程序可用于Selenium 客户端 v3.0.0-beta4。
Solution
- Upgrade JDK到最近的水平JDK 8u181 https://www.oracle.com/technetwork/java/javase/downloads/index.html.
- Upgrade Selenium到目前的水平版本3.14.0 https://docs.seleniumhq.org/download/.
- Upgrade Gecko驱动程序 to Gecko驱动程序 v0.20.1 https://github.com/mozilla/geckodriver/releases level.
- GeckoDriver 存在于指定位置。
- GeckoDriver 对非 root 用户具有可执行权限。
- Upgrade Firefox版本为火狐浏览器 v61.0.2 levels.
-
Clean your 项目工作区通过你的IDE and Rebuild您的项目仅具有所需的依赖项。
- 如果你的基地网页客户端版本太旧,然后通过卸载雷沃卸载程序 https://www.revouninstaller.com/revo_uninstaller_free_download.html并安装最新的 GA 和发布版本网页客户端.
- Take a 系统重启.
- 执行你的
Test
作为非 root 用户。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)