皆さん、こんにちは!
WebdriverIOをありがとう!
次の問題が発生しています。何が間違っているのか教えてください🙏
環境
ノードLTSを使用してTravisCI内で実行します。
_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"
}
}
WebdriverIOの構成
wdio config
からほとんどデフォルトの設定があります
https://github.com/halfzebra/wdio-starter/blob/master/wdio.conf.js
バグを説明する
TravisCIのログを確認してください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
再現するには
https://github.com/halfzebra/wdio-starterをフォークし、
予想される行動
TravisCIで動作するはずです
ヘッドレスモードでChromeを実行する方法は、 https: //github.com/webdriverio/webdriverio/issues/3130#issuecomment-447405876などを参照して
アドバイスをありがとう、それは私にとってうまくいきました!
最も参考になるコメント
アドバイスをありがとう、それは私にとってうまくいきました!