enable incognito mode

This commit is contained in:
sebthom
2022-01-30 07:19:52 +01:00
parent b4209e3227
commit 3bb6c9d396

View File

@@ -42,6 +42,11 @@ class SeleniumMixin:
LOG.info("Creating WebDriver session...")
def init_browser_options(browser_options):
if isinstance(browser_options, webdriver.EdgeOptions):
browser_options.add_argument("-inprivate")
else:
browser_options.add_argument("--incognito")
browser_options.add_argument("--disable-crash-reporter")
browser_options.add_argument("--no-first-run")
browser_options.add_argument("--no-service-autorun")