by chirau · 3y ago · 0 comments
The article mentions that to use this you need to specify the --headless=new flag.
I know that to set the headless flag i can just use this code:
from selenium.webdriver.chrome.options import Options
options = Options()
options.headless = True
But how would I specify the new part of the flag/option?Basically omit options.headless and use options.add_argument("--headless=new") instead.