File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ def get_local_driver(browser_name, headless):
147
147
firefox_driver = webdriver .Firefox (
148
148
firefox_profile = profile , capabilities = firefox_capabilities )
149
149
return firefox_driver
150
- except Exception :
150
+ except Exception as e :
151
+ if headless :
152
+ raise Exception (e )
151
153
return webdriver .Firefox ()
152
154
if browser_name == constants .Browser .INTERNET_EXPLORER :
153
155
return webdriver .Ie ()
@@ -179,5 +181,7 @@ def get_local_driver(browser_name, headless):
179
181
# Run Chrome in full screen mode on MAC/Linux
180
182
chrome_options .add_argument ("--kiosk" )
181
183
return webdriver .Chrome (chrome_options = chrome_options )
182
- except Exception :
184
+ except Exception as e :
185
+ if headless :
186
+ raise Exception (e )
183
187
return webdriver .Chrome ()
You can’t perform that action at this time.
0 commit comments