'Unable to run chrome e2e on WSL
WSL protractor e2e test cannot start chrome, and threw below error
E/launcher - unknown error: Chrome failed to start: exited abnormally. (chrome not reachable)
Solution 1:[1]
Open protractor.conf.js
Update config and add '--no-sandbox' chromeOptions.args
exports.config = {
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'--no-sandbox',// <= this argument here
],
},
},
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Amr Ibrahim |
