linux - 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>
解决方案
推荐阅读
- python - 如何检查Python中的每个单词
- python - 3 类分类问题的截止阈值
- sql - 为什么一个事务不延迟另一事务?
- java - 无法从 postgres 查看图像
- javascript - 如何制作流畅的汽车移动动画?
- r - 如何读取 R 中 wd 子目录中的多个文件?
- android - 更改工具栏背景会导致薰衣草色
- node.js - 无法在 Windows 版本 10 上安装 firebase 工具,不推荐使用 npm WARN
- python - KivyMD 错误:ValueError:KivyMD:必须在加载根小部件之前初始化 App 对象
- java - 在java中运行linux命令