首页 > 解决方案 > org.openqa.selenium.SessionNotCreatedException:会话未在 centos 终端断开连接时创建

问题描述

我遇到了错误,有人可以帮助我解决 centos 7 终端上的问题。将chrome驱动复制到/usr/local/bin并提供可执行权限,chrome浏览器复制到/usr/bin并提供可执行权限。创建应用程序的 Jar 文件并在 centos 终端上执行相同的文件。

Dependencies on POM as follows :
<artifactId>webdrivermanager</artifactId>
<version>4.4.3</version>

<artifactId>selenium-java</artifactId>
<version>3.141.59</version>

<artifactId>testng</artifactId>
<version>7.4.0</version>
Java version is 11.


----------


ChromeDriver was started successfully.
org.openqa.selenium.SessionNotCreatedException: session not created
from disconnected: unable to connect to renderer
  (Session info: headless chrome=94.0.4606.61)
Build info: version: 'unknown', revision: 'e82be7d358', time: '2018-11-14T08:24:01'
System info: host: '******.local', ip: '**.***.**.**', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-1127.8.2.el7.x86_64', java.version: '11.0.12'
Driver info: driver.version: ChromeDriver
remote stacktrace: #0 0x5561600c88f3 <unknown>

标签: linuxseleniumselenium-webdrivercentos7

解决方案


推荐阅读