mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-16 20:38:06 +00:00
Measuring the widget with page.evaluate() made Cloudflare reissue the challenge every few seconds, so the interstitial never cleared. Locate the container with locators instead and click it through the mouse, which leaves its closed shadow root untouched. Keep the solver lazy as well: ClickSolver.prepare() patches attachShadow, which is what escalated a self-clearing challenge into a checkbox in the first place. A click can land while the widget is still self-verifying, so retry on a cooldown for as long as the request budget lasts rather than stopping after the first one, and confirm the marker is gone twice before reporting success since it drops out between challenge rounds. The bypass tests now pass on their own, so drop the xfail marks. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>