SyntaxFix
Write A Post
Hire A Developer
Questions
Just a note for people who may have found this later (and want java way of achieving this); FirefoxOptions is also capable of enabling the headless mode:
FirefoxOptions
FirefoxOptions firefoxOptions = new FirefoxOptions(); firefoxOptions.setHeadless(true);