forgotten changes

This commit is contained in:
Mehmet Baran 2023-04-17 05:16:27 +03:00
parent 331ec2f8cf
commit dcb751c78a
1 changed files with 2 additions and 2 deletions

View File

@ -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")