如何解决由于 Xvfb 无法在 RHEL 中启动,Selenium 测试失败
由于 Xvfb 未启动,Selenium 测试用例在 Centos8 中失败。以前在 Centos7 上它工作正常。安装了 xorg-x11-server-Xvfb-1.20.8-6.1.el8_3.x86_64 及以下版本的 Xvfb 是 maven 配置文件。请对此有所了解。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>xvfb</id>
<phase>pre-integration-test</phase>
<goals>
<goal>xvfb</goal>
</goals>
<configuration>
<displayPropertiesFile>/var/opt/xvfbPropertiesFile</displayPropertiesFile>
<options>
<option>-screen</option>
<option>0</option>
<option>1280x800x24</option>
</options>
</configuration>
</execution>
</executions>
</plugin>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。