Running selenium test via JavaScript failing

I am trying to run some Selenium tests via BitBucket Pipelines with this configuration:

        script: # Modify the commands below to build your repository.
          - npm install
          - npm install -g gulp
          - npm install -g chromedriver
          - npm install -g selenium-webdriver
          - gulp mocha
          - gulp selenium

 All of these steps succeed except for the last one, where every one of my Selenium test fails with the same error:

Uncaught Error: Server terminated early with status 127 at Error (native) at earlyTermination.catch.e (node_modules/selenium-webdriver/remote/index.js:252:52) at process._tickCallback (internal/process/next_tick.js:103:7) From: Task: WebDriver.createSession() at Function.createSession (node_modules/selenium-webdriver/lib/webdriver.js:769:24) at Function.createSession (node_modules/selenium-webdriver/chrome.js:761:15) at createDriver (node_modules/selenium-webdriver/index.js:170:33) at (node_modules/selenium-webdriver/index.js:642:16)...

Any suggestions?  Thank you.

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,006 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you