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.

[Feature Request] Support for Chrome in headless mode

See original GitHub issue

Current behavior:

It is not possible to run tests in headless mode with browser extensions installed, because the only supported browser in headless mode is Electron, and Electron doesn’t support extensions as stated in the documentation.

Expected behavior:

Either allow choosing another browser for running in headless mode or add support for third-party extensions in Electron browser.

Use case scenario:

My web project has several environments (development, beta, production) that share the same URLs and are distinguished by custom headers (say, X-FooApp-Environment: Beta).

To achieve this currently, we set the headers in an extension using headless Chrome and Selenium WebDriver.

  • Operating System: Linux
  • Cypress Version: 0.19.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:23
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
nanomosfetcommented, Jun 22, 2018

@jennifer-shehane If i were to do cypress run --browser chrome in a headless envirornment(maybe a EC2 AWS instance) would it work the way it would in a headed environment? If not, that is the feature I would want to request.

3reactions
dimitriylolcommented, Mar 12, 2019

@jennifer-shehane If i were to do cypress run --browser chrome in a headless envirornment(maybe a EC2 AWS instance) would it work the way it would in a headed environment? If not, that is the feature I would want to request.

I’ve faced similar issue and found the solution for Docker container here. If you launch cypress run --browser chrome in a container based on some image from the link (for example cypress/browsers:chrome69) it works like a charm, no additional configs are required. Hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with Headless Chrome - Chrome Developers
It's a way to run the Chrome browser in a headless environment. Essentially, running Chrome without chrome! It brings all modern web platform ......
Read more >
What is Google Chrome Headless Mode - Debug Bar
The Headless mode is a feature which allows the execution of a full version of the Chrome Browser. It provides the ability to...
Read more >
Is it possible to run Google Chrome in headless mode with ...
We've decided against implementing extension support in headless mode for now because supporting all the required features is rather complex.
Read more >
706008 - Extensions support in headless Chrome - Monorail
Headless mode doesn't currently support extensions, and it's not clear whether we can support them easily -- although we are doing some ...
Read more >
Support for Chrome headless mode in Test Studio - Telerik
Please note that Chrome headless mode is actually opposite of the idea of functional testing and thus could not be implemented as a...
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