File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,14 @@ class bcolors:
2828chromeOps = webdriver .ChromeOptions ()
2929chromeOps .add_extension (sys .argv [1 ])
3030
31- if sys .platform .startswith ("linux" ):
32- chromedriver_path = "/usr/lib/chromium-browser/chromedriver"
33- elif 'TRAVIS' in os .environ :
31+ if 'TRAVIS' in os .environ .keys ():
3432 # For TravisCI, we manually copy chromedriver to the local path.
3533 chromedriver_path = os .path .abspath ("test/chromium/chromedriver" )
3634
3735 # Travis has setuid restrictions. I think this becomes unnecessary in M42+?
38- chromeOps .add_argument ('--no-suid-sandbox' )
39- chromeOps .add_argument ('--no-sandbox' )
36+ chromeOps .add_argument ('--disable-setuid-sandbox' )
37+ elif sys .platform .startswith ("linux" ):
38+ chromedriver_path = "/usr/lib/chromium-browser/chromedriver"
4039else :
4140 # Let's hope it's in the user's path.
4241 chromedriver_path = "chromedriver"
You can’t perform that action at this time.
0 commit comments