Zalenium 启动 chrome 浏览器但未启动测试
Zalenium launches chrome browser but doesn't kicks off test
我正在尝试 运行 我在 zalenium 上的测试脚本,尽管浏览器已启动(在 vnc 中注意到)但测试没有在容器上 运行。我注意到日志中出现以下错误。
硒版本:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.0.1</version>
</dependency>
硒日志:
org.openqa.selenium.SessionNotCreatedException: Unable to create new
remote session. desired capabilities = Capabilities
[{name=TestCaseName, browserName=chrome, platform=LINUX}], required
capabilities = Capabilities [{}]
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
Docker 日志:
WARN o.s.jetty9.server.HttpChannel - /wd/hub/session
java.io.IOException: org.openqa.grid.common.exception.GridException:
No capabilities found in request: {"capabilities":
{"desiredCapabilities":
{"name":"TestcaseName","browserName":"chrome","platform":"LINUX"},"requiredCapabilities":
{}}}
这个错误信息...
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session.
...意味着 ChromeDriver 无法 initiate/spawn 新的 WebBrowser 即 Chrome 浏览器 会话。
从您的 maven 依赖项 和您正在使用的日志消息中可以明显看出您正在使用 Selenium v3.0.1
事实上,没有在Selenium Logs或Docker日志中的具体指示 以确定问题的任何根本原因,但没有 SessionNotCreatedException
。在 SessionNotCreatedException 的情况下,主要嫌疑人总是对您正在使用的二进制文件版本之间的 不兼容 并且始终建议更新以下内容二进制文件:
- Selenium JAR (v3.141.59)
- Chrome驱动程序 (v75.0)
- Chrome 浏览器 (v75.0)
我正在尝试 运行 我在 zalenium 上的测试脚本,尽管浏览器已启动(在 vnc 中注意到)但测试没有在容器上 运行。我注意到日志中出现以下错误。
硒版本:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.0.1</version>
</dependency>
硒日志:
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{name=TestCaseName, browserName=chrome, platform=LINUX}], required capabilities = Capabilities [{}] Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
Docker 日志:
WARN o.s.jetty9.server.HttpChannel - /wd/hub/session java.io.IOException: org.openqa.grid.common.exception.GridException: No capabilities found in request: {"capabilities": {"desiredCapabilities": {"name":"TestcaseName","browserName":"chrome","platform":"LINUX"},"requiredCapabilities": {}}}
这个错误信息...
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session.
...意味着 ChromeDriver 无法 initiate/spawn 新的 WebBrowser 即 Chrome 浏览器 会话。
从您的 maven 依赖项 和您正在使用的日志消息中可以明显看出您正在使用 Selenium v3.0.1
事实上,没有在Selenium Logs或Docker日志中的具体指示 以确定问题的任何根本原因,但没有 SessionNotCreatedException
。在 SessionNotCreatedException 的情况下,主要嫌疑人总是对您正在使用的二进制文件版本之间的 不兼容 并且始终建议更新以下内容二进制文件:
- Selenium JAR (v3.141.59)
- Chrome驱动程序 (v75.0)
- Chrome 浏览器 (v75.0)