[Feature Request] Support for Chrome in headless mode
See original GitHub issueCurrent 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:
- Created 6 years ago
- Reactions:23
- Comments:8 (3 by maintainers)
Top 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 >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
@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.