forgotten changes
This commit is contained in:
parent
331ec2f8cf
commit
dcb751c78a
|
@ -371,9 +371,9 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
|||
options.arguments.extend(["--no-sandbox", "--test-type"])
|
||||
|
||||
if headless or options.headless:
|
||||
if not self.patcher.version_main or self.patcher.version_main < 108:
|
||||
if self.patcher.version_main is None or self.patcher.version_main < 108:
|
||||
options.add_argument("--headless=chrome")
|
||||
elif self.patcher.version_main >= 108:
|
||||
else:
|
||||
options.add_argument("--headless=new")
|
||||
|
||||
options.add_argument("--window-size=1920,1080")
|
||||
|
|
Loading…
Reference in New Issue