question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Protractor 5.1.1 doesn't work with Chrome 57

See original GitHub issue
(node:9828) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[11:48:42] I/launcher - Running 1 instances of WebDriver
[11:48:42] I/local - Starting selenium standalone server...
[11:49:12] E/launcher - Error: Error: Timed out waiting for the WebDriver server at http://10.10.10.76:45678/wd/hub
    at onError (C:\projects\JustEat.TopPlacement.ManagementWeb\src\JustEat.TopPlacement.ManagementWeb.ProtractorTests\node_modules\selenium-webdriver\http\util.js:102:16)
    at process._tickCallback (internal/process/next_tick.js:103:7)
[11:49:12] E/launcher - Process exited with error code 100

Protractor.conf.js looks like this:

    allScriptsTimeout: 30000,
    specs: [
        "./**tests/*.js"
    ],
    capabilities: {
        browserName: "chrome",
        chromeOptions: {
            args: ["--test-type", "--no-sandbox"],
        },
        loggingPrefs: {
            browser: "ALL"
        }
    },
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 5 * 60 * 1000
    },

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:34 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
qualityshepherdcommented, Mar 24, 2017

Just for completeness, thanks to @NickTulett suggestion, you can turn off the password manager (and infobars) in Protractor thusly…

    capabilities: {
        browserName: 'chrome',
        chromeOptions: {
            args: [
                '--disable-infobars'
            ],
            prefs: {
                // disable chrome's annoying password manager
                'profile.password_manager_enabled': false,
                'credentials_enable_service': false,
                'password_manager_enabled': false
            }
        }
    },
3reactions
dinvladcommented, Mar 24, 2017

UPDATE: removing “–remote-debugging-port” option from Protractor config (but not Karma!) solves the issue (understandably, because it interferes with ChromeDriver on that port)! I.e. Protractor 5.1.1 works with Chrome 57 on a headless system without Xvfb. https://github.com/angular/protractor/issues/4164#issuecomment-288909191 if anyone is interested.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protractor 5.1.1 doesn't work with Chrome 58 - Stack Overflow
Recently my chrome browser updated to Version 57.0.2987.133 (64-bit) . Therefore, my existing protractor test is not working with the ...
Read more >
Developers - Protractor 5.1.1 doesn't work with Chrome 57 -
Coming soon: A brand new website interface for an even better experience!
Read more >
angular/protractor - Gitter
Hey guys, I am having a problem testing the count of an array. It keeps returning the error 0 expected to be 5....
Read more >
ChromeDriver Failure with Protractor - How to Use GitLab
When using protractor testing and headless mode in gitlab ... Some have suggested shm_size issues; Karma tests with headless chrome are fine.
Read more >
protractor | Yarn - Package Manager
Protractor runs tests against your application running in a real browser, interacting with it as a user would. Compatibility. Protractor 5 is compatible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found