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.

Use firefox headless mode

See original GitHub issue

Hi,

Since FF55 it’s possible to use the -headless flag. I would be nice to have it added to the options passed to firefox or add a FirefoxHeadlessBrowser.

Cheers

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:33
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

61reactions
keithamuscommented, Sep 10, 2017

In the meantime it is quite simple to set this up. Here is the minimum config options you need:

module.exports = config => {
  config.set({
    browsers: ['FirefoxHeadless'],
    customLaunchers: {
      FirefoxHeadless: {
        base: 'Firefox',
        flags: [ '-headless' ],
      },
    },
  })
}
14reactions
jscharettcommented, May 24, 2018

My apologies, user error. Forgot to add require('karma-firefox-launcher') to the karma plugins.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Headless Mode in Firefox - the Web developer blog
If you know the ropes, good news! Firefox now has support for headless mode, making it easier to use as a backend to...
Read more >
Selenium firefox headless - Python Tutorial
You can use any Web Browser like Firefox or Chrome in a headless mode. To do so, first open up the Web Browser...
Read more >
How to make Firefox headless programmatically in Selenium ...
There's another way to accomplish headless mode. If you need to disable or enable the headless mode in Firefox, without changing the code, ......
Read more >
Headless Execution of WebDriver Tests- Firefox Browser
It is quite simple to run your tests in the headless mode. You need simply to add the "--headless" argument to the FirefoxOptions...
Read more >
Selenium and Headless Environment. - Tutorialspoint
Firefox in headless mode, can be run once we configure the geckodriver path. We shall then use the FirefoxOptions class, and send the ......
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