Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Error while running tests in bitbucket pipeline

We are pretty new to Bitbucket pipeline. Currently trying to setup a pipeline to run tests written in typescript in bitbucket pipeline.

We were able to write the pipeline yml file with some help from bitbucket documentation.


image: node:12.17.0


custom: # Pipelines that can only be triggered manually


- step:


- apt-get update

- apt-get install libnspr4 libnss3 libnss3-tools

- npm install

- npm run << test written in >>


- selenium-chrome




image: selenium/standalone-chrome:3.141.59-oxygen

The above pipeline failed with below error message


Starting ChromeDriver 88.0.4324.96 (68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784}) on port 9515

Only local connections are allowed.

Please see for suggestions on keeping ChromeDriver safe.

ChromeDriver was started successfully.

[0-0] RUNNING in chrome - /tests/browser_tests/businessline/hackathon/register_happy_path.test.ts

[0-0] 2021-09-28T19:09:28.604Z ERROR webdriver: Request failed with status 500 due to unknown error: unknown error: cannot find Chrome binary

[0-0] 2021-09-28T19:09:28.605Z ERROR webdriver: unknown error: unknown error: cannot find Chrome binary

at Object.getErrorFromResponseBody (/opt/atlassian/pipelines/agent/build/node_modules/webdriver/build/utils.js:189:12)

at WebDriverRequest._request (/opt/atlassian/pipelines/agent/build/node_modules/webdriver/build/request.js:168:31)

at processTicksAndRejections (internal/process/task_queues.js:97:5)

at Object.startWebDriverSession (/opt/atlassian/pipelines/agent/build/node_modules/webdriver/build/utils.js:63:20)

at Function.newSession (/opt/atlassian/pipelines/agent/build/node_modules/webdriver/build/index.js:56:45)

at Object.exports.remote (/opt/atlassian/pipelines/agent/build/node_modules/webdriverio/build/index.js:56:22)

at Runner._startSession (/opt/atlassian/pipelines/agent/build/node_modules/@wdio/runner/build/index.js:202:56)

at Runner._initSession (/opt/atlassian/pipelines/agent/build/node_modules/@wdio/runner/build/index.js:164:25)

at (/opt/atlassian/pipelines/agent/build/node_modules/@wdio/runner/build/index.js:87:19)

[0-0] 2021-09-28T19:09:28.608Z ERROR @wdio/runner: Error: Failed to create session.

unknown error: cannot find Chrome binary

at Object.startWebDriverSession (/opt/atlassian/pipelines/agent/build/node_modules/webdriver/build/utils.js:68:15)

at processTicksAndRejections (internal/process/task_queues.js:97:5)

Any help to fix this will be very helpful.

Thanks in Advance


1 answer

Have you found a solution ? :)

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events