Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error while running webdriver.io tests in bitbucket pipeline

We are pretty new to Bitbucket pipeline. Currently trying to setup a pipeline to run webdriver.io 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

pipelines:

custom: # Pipelines that can only be triggered manually

uiTests:

- step:

script:

- apt-get update

- apt-get install libnspr4 libnss3 libnss3-tools

- npm install

- npm run << test written in webdriver.io >>

services:

- selenium-chrome

definitions:

services:

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 https://chromedriver.chromium.org/security-considerations 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 Runner.run (/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

Sanju 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

124 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you