Allow passing flags for browsers
See original GitHub issueFeature Request
What is the current behavior?
Flags are not passed to the opening browser.
What is the expected behavior?
The browser on which the test will run, should receive the flags
How would you reproduce the current behavior (if this is a bug)?
I’m trying to use Service Workers in the page, but they require localhost
or https
and testcafe is currently redirecting the browser to a server of itself (therefore, not https neither localhost). I could send a couple flags to the browser and it would not be a problem:
testcafe chrome --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=* tests/
Specify your
- operating system: MacOS Sierra
- testcafe version: 0.9.0
- node.js version: 4.2.6
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Run Chromium with command-line switches
iOS · Open the Settings app · Go to Chromium/Experimental Settings · Add your switches in the "Extra flags (one per line)". Don't...
Read more >More Arguments/Flags to pass to Chrome on 'Open Browser'
Under “Options” in Open Browser Activity, it would be nice to provide a series of arguments (“Chrome Flags”) that can be passed to...
Read more >Top 5 Google Chrome Flags for Developers - Bits and Pieces
Chrome Flags are a set of experimental features provided by the Chrome browser. Although they are experimental, enabling them will increase ...
Read more >ChromiumOS Platform - Passing Chrome flags from
Configuration that would apply both to the Chrome browser and to other products that could be built using the Chromium codebase (e.g. a...
Read more >Set Chrome policies for users or browsers - Google Support
Enrolled browsers to enforce policies when users open Chrome browser on ... Many settings allow you to enforce a policy that users cannot...
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
I believe it’s worth implementing on our side: add ability to specify browser parameters for aliases. But command line syntax requires some bikeshedding. Maybe something like:
Thank you @inikulin , I’m using it and it is working. I believe I will manage to have it published pretty soon 😃 Will keep you up to date to check on ways (still working on it) to test service workers.