Skip to content

Commit e337755

Browse files
committed
Update default settings for Undetected Mode
1 parent 1d09bf3 commit e337755

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

seleniumbase/plugins/driver_manager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ def Driver(
249249
enable_ws = False
250250
if undetectable or undetected or uc or uc_subprocess or uc_sub:
251251
undetectable = True
252+
if (
253+
(undetectable or undetected or uc)
254+
and uc_subprocess is None
255+
and uc_sub is None
256+
):
257+
uc_subprocess = True # Use UC as a subprocess by default.
252258
elif (
253259
"--undetectable" in sys_argv
254260
or "--undetected" in sys_argv

seleniumbase/plugins/sb_manager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ def SB(
388388
disable_ws = True
389389
if undetectable or undetected or uc or uc_subprocess or uc_sub:
390390
undetectable = True
391+
if (
392+
(undetectable or undetected or uc)
393+
and uc_subprocess is None
394+
and uc_sub is None
395+
):
396+
uc_subprocess = True # Use UC as a subprocess by default.
391397
elif (
392398
"--undetectable" in sys_argv
393399
or "--undetected" in sys_argv

0 commit comments

Comments
 (0)