3 ms·
How do i set the new part of the headless flag in Python? The article mentions that to use this you need to specify the --headless=new flag. I know that to se
by chirau 4y ago
How do i set the new part of the headless flag in Python?
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?
- mixedCase 4y ago[flagged]
- pRusya 4y agoThere's a mention to this in the recent Selenium blog post https://www.selenium.dev/blog/2023/headless-is-going-away/#after https://www.selenium.dev/blog/2023/headless-is-going-away/#a... Basically omit options.headless and use options.add_argument("--headless=new") instead.