Add no sandbox flag

See https://github.com/travis-ci/docs-travis-ci-com/pull/1671 for more info
This commit is contained in:
David Taylor
2018-03-24 22:19:10 +00:00
parent 7f3d628d01
commit a26e65073c

View File

@@ -32,6 +32,7 @@ def create_browser():
options.add_argument("--window-size=1920,1080")
if os.environ.get('CI', False):
options.add_argument("--headless")
options.add_argument("--no-sandbox")
driver = webdriver.Chrome(chrome_options=options)
return driver