Headless mode is a useful way to run Firefox, which is just as it sounds — Firefox is run as normal, except without any of the UI components visible. This may not be very useful for surfing the web, but it is very useful for automated testing. This article provides all you need to know about running headless Firefox.
Using headless mode
You can run Firefox in headless mode from the command line, by including the
-headless flag. For example:
For the moment, we've kept it simple, but more options will be added later on.
As an example, we are working on a
... read the whole story at developer.mozilla.org.
--screenshot option, which will allow you easily take screenshots using headless Firefox. See