options = webdriver.ChromeOptions()
options.add_argument('--disable-extensions')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--disable-gpu')
options.add_argument('--ignore-certificate-errors-spki-list')
options.add_argument('--ignore-certificate-errors')
options.add_argument('--ignore-urlfetcher-cert-requests')
options.add_argument('--disable-test-root-certs')
options.add_argument('--allow-insecure-localhost')
options.add_argument('--allow-running-insecure-content')
options.add_argument('--enable-features=NetworkService')
options.add_argument('--reduce-security-for-testing')
options.add_experimental_option(
"prefs", {
"download.default_directory": str(Path(BASE_DIR, "downloads")),
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"safebrowsing.enabled": True,
'https-first-mode-v2': False,
})
for m in n.values():
Смотри отличия
for n in dct: