fix: return elif self patcher version
This commit is contained in:
parent
f1869ecac6
commit
cf9623e7bd
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue