Skip to content

Commit 3d9f0ea

Browse files
committed
Add support for uc_gui_handle_cf() in the Driver() formats
1 parent 0fb6618 commit 3d9f0ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,10 @@ def get_driver(
16341634
if headless2 and browser_name == constants.Browser.FIREFOX:
16351635
headless2 = False # Only for Chromium
16361636
headless = True
1637+
if not hasattr(sb_config, "headless"):
1638+
sb_config.headless = headless
1639+
if not hasattr(sb_config, "headless2"):
1640+
sb_config.headless2 = headless2
16371641
if (
16381642
binary_location
16391643
and isinstance(binary_location, str)

0 commit comments

Comments
 (0)