我想运行使用Selenium java自动化的测试用例。当管道开始执行时,我在GitLab中提交了Maven项目。我在GitLab中收到此错误消息。
失败的测试:chromeInitialization(Project):驱动程序不可执行:
并且Chrome浏览器未启动。
git-ci.yml
文件包含
image: docker:latest
services:
- docker:dind
- selenium/standalone-chrome:latest
stages:
- build
- test
maven-build:
image: maven:3.3.9-jdk-8
stage: build
script: "mvn test"
artifacts:
paths:
- target/