File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2342,7 +2342,6 @@ def get_local_driver(
2342
2342
device_height ,
2343
2343
device_pixel_ratio ,
2344
2344
)
2345
- opera_options .headless = False # No support for headless Opera
2346
2345
warnings .simplefilter ("ignore" , category = DeprecationWarning )
2347
2346
return webdriver .Opera (options = opera_options )
2348
2347
except Exception :
@@ -2626,7 +2625,6 @@ def get_local_driver(
2626
2625
from urllib .error import URLError
2627
2626
2628
2627
if "linux" in PLATFORM :
2629
- chrome_options .headless = False # Use Xvfb
2630
2628
if "--headless" in (
2631
2629
chrome_options .arguments
2632
2630
):
@@ -2919,7 +2917,8 @@ def get_local_driver(
2919
2917
" headless mode. Attempting to use the"
2920
2918
" SeleniumBase virtual display on Linux..."
2921
2919
)
2922
- chrome_options .headless = False
2920
+ if "--headless" in chrome_options .arguments :
2921
+ chrome_options .arguments .remove ("--headless" )
2923
2922
return webdriver .Chrome (options = chrome_options )
2924
2923
except Exception :
2925
2924
try :
You can’t perform that action at this time.
0 commit comments