How do I run Selenium headless in Chrome?
You can run Google Chrome in headless mode by setting the headless property of the chromeOptions object to True.
Alternatively, you can use the chromeOptions object’s add argument() method to add the –headless command-line argument.