Skip to content

Commit 25f712c

Browse files
committed
Update the algorithm that decides if UC Mode calls reconnect()
1 parent f28c1b1 commit 25f712c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,18 @@ def find_edgedriver_version_to_use(use_version, driver_version):
308308

309309
def has_cf(text):
310310
if (
311-
"<title>Just a moment...</title>" in text
312-
or "<title>403 Forbidden</title>" in text
311+
"<title>403 Forbidden</title>" in text
313312
or "Permission Denied</title>" in text
314313
or 'id="challenge-error-text"' in text
314+
or "<title>Just a moment..." in text
315315
or 'action="/?__cf_chl_f_tk' in text
316316
or 'src="chromedriver.js"' in text
317+
or 'class="g-recaptcha"' in text
318+
or 'content="Pixelscan"' in text
317319
or 'id="challenge-form"' in text
318320
or "window._cf_chl_opt" in text
321+
or "/recaptcha/api.js" in text
322+
or "/turnstile/" in text
319323
):
320324
return True
321325
return False

0 commit comments

Comments
 (0)