How do I enable headless mode in Selenium?
For each brower based on the Option Argument the setup for Healess is diff . For Ex ChromeOption option= new ChromeOption(); .addArguments(“–headless”); For Firefox FirefoxOptions op1= new FirefoxOptions(); op1.setHeadless(true)