From c1edd070e7a9ab4833bca9097a557dd820326c9b Mon Sep 17 00:00:00 2001 From: Saeed Ganji Date: Wed, 19 Feb 2020 12:19:51 +0330 Subject: [PATCH] fixed(protractor): fixes chrome-driver running inside container 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](https://github.com/puppeteer/puppeteer/issues/1834), [here](https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t), and [here](https://github.com/SeleniumHQ/selenium/issues/6049#issuecomment-398867205) --- skeleton/protractor/protractor.conf.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skeleton/protractor/protractor.conf.js b/skeleton/protractor/protractor.conf.js index 399edeb98..7f9160420 100644 --- a/skeleton/protractor/protractor.conf.js +++ b/skeleton/protractor/protractor.conf.js @@ -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;