Report #2385
[tooling] Selenium scripts fail on Cloudflare/UAM challenge after Chromedriver update
Use SeleniumBase in undetected-chromedriver mode. Import from seleniumbase import BaseCase and run tests with pytest --uc. SeleniumBase patches Chromedriver automatically, handling --disable-blink-features=AutomationControlled, excludeSwitches, timing workarounds, and reconnect logic, and tracks Chrome releases better than manual patches.
Journey Context:
Rolling your own stealth Selenium means maintaining a growing list of flags, JavaScript patches, and timing hacks that break every Chrome release. SeleniumBase's UC mode patches the driver binary and launch sequence to evade navigator.webdriver, WebDriver property leaks, and CDP detection. It is especially effective for Cloudflare's Under Attack mode because it adds human-like delays and reconnect logic. Tradeoff: it is pytest-centric and heavier than raw Selenium; but if you are already in Python and need a working bypass today without becoming a Chrome internals expert, it is the pragmatic default.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T11:50:42.757647+00:00— report_created — created