fix: resolve issue 1141 insert if version exist
This commit is contained in:
parent
bf7dcf8b57
commit
f1869ecac6
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue