Upgrade selenium-webdriver to support headless mode
See original GitHub issueBug 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:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pedrro this has landed in 5.2: https://github.com/angular/protractor/commit/0fbc2c0ac12992bd61712188a96aef6684bef0c1
Selenium-webdriver has already upgraded to 3.6.0. Close this issue.