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.

Allow passing flags for browsers

See original GitHub issue

Feature 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
inikulincommented, Oct 21, 2016

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:

testcafe "chrome --ignore-certificate-errors",firefox tests/
1reaction
felipenmouracommented, Oct 26, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

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