no-sandbox兼容

This commit is contained in:
Jerry Yan 2022-06-06 16:47:40 +08:00
parent f6b3181142
commit 059f82de00
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,8 @@ class ChromeDriver(IDriver):
options.add_argument('-ignore-certificate-errors')
options.add_argument('-ignore -ssl-errors')
options.add_argument('--incognito')
if config()['webdriver']['chrome']['no_sandbox']:
options.add_argument('--no-sandbox')
proxy = Proxy()
proxy.proxy_type = ProxyType.MANUAL
proxy.http_proxy = "%s:%s" % (config()['mitm']['host'], config()['mitm']['port'])

View File

@ -9,6 +9,7 @@ webdriver:
bin: msedgedriver.exe
chrome:
bin: chromedriver
no_sandbox: True
output:
use: