Update __init__.py
This commit is contained in:
parent
874cf2852b
commit
46b000ae21
|
@ -383,10 +383,12 @@ 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:
|
||||
options.add_argument("--headless=chrome")
|
||||
elif self.patcher.version_main >= 108:
|
||||
options.add_argument("--headless=new")
|
||||
#workaround until a better checking is found
|
||||
options.add_argument("--headless=new")
|
||||
#if self.patcher.version_main < 108:
|
||||
# options.add_argument("--headless=chrome")
|
||||
#elif self.patcher.version_main >= 108:
|
||||
|
||||
|
||||
options.add_argument("--window-size=1920,1080")
|
||||
options.add_argument("--start-maximized")
|
||||
|
|
Loading…
Reference in New Issue