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.

Upgrade selenium-webdriver to support headless mode

See original GitHub issue

Bug report

Today actual version of protractor use selenium-webdriver 3.0.1 that doesn’t support run chrome on headless mode, can we update to selenium-webdriver latest version 3.4.0?

As described on error, selenium-webdriver provide chromeDriver on version 2.20, but only version 2.3 support the headless mode of chrome.

https://developers.google.com/web/updates/2017/04/headless-chrome ChromeDriver 2.3.0 supports Chrome 59 and later and works with headless Chrome. In some cases, you may need Chrome 60 to work around bugs.

  • Node Version: 6.9.0
  • Protractor Version: 5.0.0
  • Angular Version: 1.5.0
  • Browser(s): chrome (chromeless)
  • Operating System and Version OSX Yosemite
  • Your protractor configuration file
exports.config = {
 baseUrl: 'http://localhost:8081',
 framework: 'jasmine',
 specs: ['*_spec.js'],
 seleniumPort: process.env.SELENIUM_PORT,
 seleniumArgs: ['-Djava.security.egd=file:///dev/urandom'],
 maxSessions: 3,
 multiCapabilities: [{
   'browserName': 'chrome',
   chromeOptions: {
     args: [ "--headless", "--disable-gpu", "--window-size=1600,1200" ]
   },
   'shardTestFiles': true,
   'maxInstances': 3
 }]
};
  • Output from running the test
UnknownError: unknown error: unrecognized Chrome version: HeadlessChrome/59.0.3071.115
(Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.10.5 x86_64) (WARNING: The server did not provide any stacktrace information)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
qiyiggcommented, Nov 6, 2017

Selenium-webdriver has already upgraded to 3.6.0. Close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium Headless Browser Testing - Tools QA
In this article, we will discuss these headless browsers and how we can use them for running the Selenium test cases in headless...
Read more >
How to run a headless Chrome browser in Selenium WebDriver.
Starting with version 60, the Chrome browser introduced the ability to run in headless mode. We now have the ability to launch the...
Read more >
Running Selenium Headless with Chrome - Linux Hint
You can configure Selenium to do web automation, web scrapping, browser tests, etc. in headless mode. In this article, how to run Selenium...
Read more >
Upgrade to Selenium 4
Are you still using Selenium 3? This guide will help you upgrade to the latest release! Upgrading to Selenium 4 should be a...
Read more >
Running Selenium with Headless Chrome Webdriver
@GregWoods Great solution, too, when you want to run Selenium tests on a desktop-less server. Before switching to this solution, we had to ......
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