Re:Firefox 56 supports headless mode on Windows
by celerity on Thursday June 22, 2017 @05:44PM
(#14615590)
Thanks! That was guess as well, since running the command you posted from cmd does work. I dug around selenium's source code a bit, but decided to take the pragmatic path and use the MOZ_HEADLESS environment variable instead.
> "c:\Program Files\Nightly\firefox.exe" -headless
(It also works when Firefox is invoked from a Node.js script in a test suite for a Node.js program that drives Firefox.)
Perhaps this is a Selenium issue?