Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error while running webdriver.io tests in bitbucket pipeline

Sanju Ammu September 28, 2021

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 

1 answer

0 votes
Noah Di Gesu April 11, 2022

Have you found a solution ? :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events