fix: resolve issue 1141 insert if version exist

This commit is contained in:
kayqueGovetri 2023-03-24 07:38:54 -03:00
parent bf7dcf8b57
commit f1869ecac6
1 changed files with 3 additions and 2 deletions

View File

@ -371,9 +371,10 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
options.arguments.extend(["--no-sandbox", "--test-type"])
if headless or options.headless:
if self.patcher.version_main < 108:
version = self.patcher.version_main
if version and version < 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")