I’m very new to Travis CI and I’m currently setting up a test for a Private project. I am facing an issue with the chrome. My automation framework is following a POM modal using nodejs, selenium-webdriver, and mocha.
Every time I trigger a new build my test fail in before hook as shown below :
$ mocha tests/smokeSuite.js
Smoke Suite: Chrome
1) "before all" hook: ret for "Verify that User is able to Sign in with the existing Email Team credentials."
2) "after all" hook: ret for "Verify that user is able to sign out of the account."
0 passing (490ms)
2 failing
1) Smoke Suite: Chrome
"before all" hook: ret for "Verify that User is able to Sign in the existing Email Team credentials.":
WebDriverError: unknown error: cannot find Chrome binary
(Driver info: chromedriver=90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}),platform=Windows NT 10.0.17763 x86_64)
at Object.checkLegacyResponse (node_modules\selenium-webdriver\lib\error.js:546:15)
at parseHttpResponse (node_modules\selenium-webdriver\lib\http.js:509:13)
I have configured .travis.yml
according to project requirement :
language: node_js
node_js:
- node
os: windows
addons:
chrome: stable
install:
- npm install
jobs:
include:
- stage: "Tests 1"
name: "Smoke Suite"
script:
- mocha tests/smokeSuite.js
- os: windows
language: node_js
node_js:
- node
name: "Regression Suite"
script:
- mocha tests --fgrep Regression
If anyone knows a solution, advice would be very much appreciated.
Thanks!