Skip to content

Commit a6c0493

Browse files
committed
Error early when combining UC Mode with Chrome-Headless-Shell
1 parent c167a23 commit a6c0493

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,13 @@ def get_driver(
26512651
if headless2 and browser_name == constants.Browser.FIREFOX:
26522652
headless2 = False # Only for Chromium
26532653
headless = True
2654+
if (
2655+
is_using_uc(undetectable, browser_name)
2656+
and binary_location
2657+
and isinstance(binary_location, str)
2658+
and binary_location.lower() == "chs"
2659+
):
2660+
raise Exception("UC Mode can't be used with Chrome-Headless-Shell!")
26542661
if (
26552662
binary_location
26562663
and isinstance(binary_location, str)

0 commit comments

Comments
 (0)