Selenium Zalenium推出chrome浏览器,但没有';t启动试验
我试图在zalenium上运行测试脚本,虽然浏览器启动(在vnc中注意到),但测试不会在容器上运行。我注意到日志中有以下错误 Selenium版本:Selenium Zalenium推出chrome浏览器,但没有';t启动试验,selenium,google-chrome,selenium-chromedriver,selenium-grid,zalenium,Selenium,Google Chrome,Selenium Chromedriver,Selenium Grid,Zalenium,我试图在zalenium上运行测试脚本,虽然浏览器启动(在vnc中注意到),但测试不会在容器上运行。我注意到日志中有以下错误 Selenium版本: <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-server</artifactId>
<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.seleniumhq.selenium
硒服务器
3.0.1
org.seleniumhq.selenium
硒爪哇
3.0.1
硒日志:
org.openqa.selenium.SessionNotCreatedException:无法创建新的
远程会话。期望的能力=能力
[{name=TestCaseName,browserName=chrome,platform=LINUX}],必需
能力=能力[{}]
构建信息:版本:'3.0.1',修订版:'1969d75',时间:'2016-10-18 09:49:13-0700'
Docker日志:
警告o.s.jetty9.server.HttpChannel-/wd/hub/session
java.io.IOException:org.openqa.grid.common.exception.GridException:
在请求中未找到任何功能:{“功能”:
{“期望的能力”:
{“name”:“TestcaseName”,“browserName”:“chrome”,“平台”:“LINUX”},“requiredCapabilities”:
{}}}
此错误消息
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session.
…意味着ChromeDriver无法启动/生成新的网络浏览器,即Chrome浏览器会话
从maven依赖关系和日志消息可以明显看出,您正在使用Selenium v3.0.1
事实上,Selenium日志或Docker日志中都没有具体的指示来确定问题的任何根本原因,而没有SessionNotCreatedException。在SessionNotCreatedException的情况下,主要怀疑对象始终是您正在使用的二进制文件版本之间的不兼容,建议始终更新以下二进制文件:
- 硒罐(v3.141.59)
- 铬驱动(v75.0)
- Chrome浏览器(v75.0)