no-sandbox兼容
This commit is contained in:
parent
f6b3181142
commit
059f82de00
@ -17,6 +17,8 @@ class ChromeDriver(IDriver):
|
|||||||
options.add_argument('-ignore-certificate-errors')
|
options.add_argument('-ignore-certificate-errors')
|
||||||
options.add_argument('-ignore -ssl-errors')
|
options.add_argument('-ignore -ssl-errors')
|
||||||
options.add_argument('--incognito')
|
options.add_argument('--incognito')
|
||||||
|
if config()['webdriver']['chrome']['no_sandbox']:
|
||||||
|
options.add_argument('--no-sandbox')
|
||||||
proxy = Proxy()
|
proxy = Proxy()
|
||||||
proxy.proxy_type = ProxyType.MANUAL
|
proxy.proxy_type = ProxyType.MANUAL
|
||||||
proxy.http_proxy = "%s:%s" % (config()['mitm']['host'], config()['mitm']['port'])
|
proxy.http_proxy = "%s:%s" % (config()['mitm']['host'], config()['mitm']['port'])
|
||||||
|
@ -9,6 +9,7 @@ webdriver:
|
|||||||
bin: msedgedriver.exe
|
bin: msedgedriver.exe
|
||||||
chrome:
|
chrome:
|
||||||
bin: chromedriver
|
bin: chromedriver
|
||||||
|
no_sandbox: True
|
||||||
|
|
||||||
output:
|
output:
|
||||||
use:
|
use:
|
||||||
|
Reference in New Issue
Block a user