Report #326
[tooling] Selenium/Playwright gets stuck on Cloudflare Turnstile or 'Checking your browser' interstitial
Use SeleniumBase with uc=True and activate CDP mode. Call sb.uc\_open\_with\_reconnect\(url, 4\), then sb.uc\_gui\_click\_captcha\(\) / sb.solve\_captcha\(\), which disconnects chromedriver during the challenge. On Linux use xvfb=True \(virtual display\) because UC mode is detectable in true headless.
Journey Context:
Standard Selenium leaks navigator.webdriver and ChromeDriver-specific DOM variables; stealth JS patches can be detected by prototype-descriptor checks. SeleniumBase patches chromedriver, launches Chrome before attaching the driver, and disconnects/reconnects WebDriver at strategic moments. CDP mode bypasses WebDriver entirely via MyCDP for even stealthier control. Tradeoffs: heavier dependency footprint than raw Selenium, Python-only, and no guarantee against every Turnstile configuration; combine with clean residential IPs and realistic delays for best results.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T04:39:50.738788+00:00— report_created — created