MDN wants to learn about developers like you:


Headless mode

This page is not complete.

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.

Basic access to headless mode

You can run Firefox in headless mode from the command line, by including the -headless flag. For example:

/path/to/firefox/install -headless

What other command line options are available?

Automated testing with headless mode


xxx (I tested this with Fx 56, but it no longer seems to work with Fx 57+)


xxx (Currently looking at the best way to get this working specifically with Firefox Nightly)



Document Tags and Contributors

 Contributors to this page: chrisdavidmills
 Last updated by: chrisdavidmills,