Use headless configuration properly (#1104)

This commit is contained in:
Justin Kromlinger 2024-02-28 21:36:38 +01:00 committed by GitHub
parent afdc1c7a8e
commit 35c7bff3c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,7 +186,7 @@ def get_webdriver(proxy: dict = None) -> WebDriver:
try:
driver = uc.Chrome(options=options, browser_executable_path=browser_executable_path,
driver_executable_path=driver_exe_path, version_main=version_main,
windows_headless=windows_headless, headless=windows_headless)
windows_headless=windows_headless, headless=get_config_headless())
except Exception as e:
logging.error("Error starting Chrome: %s" % e)