Pipeline chrome DriverConfigurationError

We are trying to execute Serenity tests using Bitbucket pipeline by installing chrome and not able to run chromedriver.

Build log shows following -


It is using  google-chrome-stable - 100.0.4896.127-1 and chromedriver 100.0.4896.60 (resolved driver for Chrome 100)


Caused by: net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver (Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '4.1.1', revision: 'e8fcc2cecf'
System info: host: 'a7c30361-578e-4621-ab4b-4e72c9da7548-vlf95', ip: '', os.name: 'Linux', os.arch: 'amd64', os.version: '5.13.0-1017-aws', java.version: '1.8.0_292'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: false, browserName: chrome, goog:chromeOptions: {args: [--start-maximized, --test-type, --no-sandbox, --ignore-certificate-errors, \n --disa..., --disable-default-apps, --disable-extensions-file-a..., \n --inco..., --disable-infobars,--disabl...], extensions: []}}]



Following is script from bitbucket-pipelines.yml -


image: maven:3.6.3
image: atlassian/default-image:2

- parallel:
- step:
name: Build and Test
- docker
- maven
- apt-get update && apt install wget unzip xvfb
- apt-get install -y libasound2 libnspr4 libnss3 libxss1 xdg-utils unzip libappindicator1 fonts-liberation
- apt-get -f install
- wget http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- dpkg -i google-chrome*.deb
- mvn clean verify -Dmaven.wagon.http.pool=false


lease help me resolve this issue.

1 answer

Hi were you able to resolve this issue? I am getting the exact same

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events