From cf9623e7bdcadbffcbb29731c6547728386686f7 Mon Sep 17 00:00:00 2001 From: kayqueGovetri Date: Fri, 24 Mar 2023 07:40:18 -0300 Subject: [PATCH] fix: return elif self patcher version --- undetected_chromedriver/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index c7e6f45..c2d5a0e 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -374,7 +374,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): version = self.patcher.version_main if version and version < 108: options.add_argument("--headless=chrome") - else: + elif self.patcher.version_main >= 108: options.add_argument("--headless=new") options.add_argument("--window-size=1920,1080")