File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,21 @@ class bcolors:
2525 UNDERLINE = '\033 [4m'
2626
2727
28+ chromeOps = webdriver .ChromeOptions ()
29+ chromeOps .add_extension (sys .argv [1 ])
30+
2831if sys .platform .startswith ("linux" ):
2932 chromedriver_path = "/usr/lib/chromium-browser/chromedriver"
3033elif 'TRAVIS' in os .environ :
3134 # For TravisCI, we manually copy chromedriver to the local path.
3235 chromedriver_path = os .path .abspath ("test/chromium/chromedriver" )
33- else :
34- chromedriver_path = "chromedriver" # Let's just hope it's in the user's path.
3536
37+ # Travis has setuid restrictions. I think this becomes unnecessary in M42+
38+ chromeOps .add_argument ('--no-suid-sandbox' )
39+ else :
40+ # Let's hope it's in the user's path.
41+ chromedriver_path = "chromedriver"
3642
37- chromeOps = webdriver .ChromeOptions ()
38- chromeOps .add_extension (sys .argv [1 ])
3943
4044try :
4145 # First argument is optional, if not specified will search path.
You can’t perform that action at this time.
0 commit comments