Webdriverio: WebdriverIO v5 test fails on Travis CI with "DevToolsActivePort file doesn't exist"

Created on 16 Jan 2019  ·  3Comments  ·  Source: webdriverio/webdriverio

Hello friends!

Thanks for WebdriverIO!

I'm having the following problem, please let me know what am I doing wrong 🙏

Environment

Running inside Travis CI with Node LTS.

_travis.yml_

language: node_js

node_js:
  - '10.15'

_package.json_

{
  "name": "wdio-starter",
  "private": true,
  "scripts": {
    "postinstall": "selenium-standalone install",
    "test": "wdio wdio.conf.js"
  },
  "dependencies": {
    "@wdio/cli": "^5.2.8",
    "@wdio/local-runner": "^5.2.8",
    "@wdio/mocha-framework": "^5.2.8",
    "@wdio/selenium-standalone-service": "^5.2.2",
    "@wdio/spec-reporter": "^5.2.3",
    "@wdio/sync": "^5.2.8"
  }
}

Config of WebdriverIO
I have pretty much default setup from wdio config
https://github.com/halfzebra/wdio-starter/blob/master/wdio.conf.js

Describe the bug
Please check out the log from Travis CI https://travis-ci.org/halfzebra/wdio-starter/builds/480278039

ERROR webdriver: Request failed due to Error: 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.)

https://travis-ci.org/halfzebra/wdio-starter

To Reproduce
Fork https://github.com/halfzebra/wdio-starter and run on Travis CI.

Expected behavior
Should work on Travis CI

Most helpful comment

Thanks for the advice, it worked out well for me!

All 3 comments

@halfzebra There is no UI to run chrome on Travis build. You should configure xvfb in your travis.yaml file or use headless chrome

Also join our Gitter for these kind of questions. This is not necessary an issue.

How to run chrome in headless mode see e.g. https://github.com/webdriverio/webdriverio/issues/3130#issuecomment-447405876

Thanks for the advice, it worked out well for me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christian-bromann picture christian-bromann  ·  3Comments

davidsoderberg picture davidsoderberg  ·  4Comments

graingert picture graingert  ·  4Comments

grofit picture grofit  ·  4Comments

briancullinan picture briancullinan  ·  4Comments