protractor: Bug: DevToolsActivePort File doesn't exist

Bug report

Not able to run chrome directconnect. WebDriverError: unknown error: DevToolsActivePort file doesn’t exist. About the same issue as the log here https://github.com/SeleniumHQ/selenium/issues/5964

  • Node Version: 6
  • Protractor Version: 5.3.1
  • Angular Version: N/A
  • Browser(s): chrome
  • Operating System and Version windows 10
  • Your protractor configuration file
let config = {
    allScriptsTimeout: 11000,
    specs: [
        './specs/**.spec.ts'
    ],
    capabilities: {
        'browserName': 'chrome',
        'useAutomationExtension': false,
        'args': ['--disable-gpu','-disable-dev-shm-usage','--no-sandbox','-disable-popup-blocking','--start-maximized','--disable-web-security','--allow-running-insecure-content','--disable-infobars']
    },
    params: {
        basePath
    },
    directConnect: true,
    baseUrl:  basePath,
    framework: 'jasmine',
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000,
        print: function () { }
    },
    useAllAngular2AppRoots: true,
    beforeLaunch: function () {
        require('ts-node').register({
            lazy: true
        });
    }
};

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 2
  • Comments: 22 (1 by maintainers)

Commits related to this issue

Most upvoted comments

@CalebRouleau I’ve tried with Puppeteer@1.1.1 (Chrome 66) and Puppeteer@1.5.0 (Chrome 69) And the following flags: ['--headless', '--disable-gpu', '--no-sandbox', '--disable-extensions', '--disable-dev-shm-usage']

I solved the issue by using:

webdriver-manager start

instead of:

sudo webdriver-manager start

I was having the very same problem, the solution i found was to downgrade your ChromeDriver. I downgraded mine to version 2.37

You can use this command webdriver-manager update --versions.chrome 2.37

@tony2tones Downgrading to 2.38 worked for me on Windows 10 Chrome 66.0.3359.181 . Thanks!

@tony2tones I can confirm your solution is the only thing that worked for me on Windows 10 Chrome 67.0.3396.99 protractor 5.3.2.