Skip to content

Commit

Permalink
fixed(protractor): fixes chrome-driver running inside container
Browse files Browse the repository at this point in the history
When running chrome-driver via protractor it fails with `DevToolsActivePort file doesn't exist`, two arguments should be passed to chrome based on the discussions [here](puppeteer/puppeteer#1834), [here](https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t), and [here](SeleniumHQ/selenium#6049 (comment))
  • Loading branch information
shahabganji authored and 3cp committed Feb 19, 2020
1 parent ff13245 commit c1edd07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skeleton/protractor/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ const config = {
if (headless) {
config.capabilities.chromeOptions.args.push("--no-gpu");
config.capabilities.chromeOptions.args.push("--headless");
config.capabilities.chromeOptions.args.push("--no-sandbox");
config.capabilities.chromeOptions.args.push("--disable-dev-shm-usage");
}

exports.config = config;

0 comments on commit c1edd07

Please sign in to comment.