mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 14:20:08 +01:00
nowsecure.nl carries no interstitial, so the turnstile detector only widened the entry condition without ever being able to satisfy the exit one, leaving a turnstile-only page reported as solved on the first poll. Detect on the interstitial alone. Restore the user-agent guard that went missing: an absent header made Solution reject None and turned into an unhandled 500, where it used to degrade to an empty string. Fall back to "" directly rather than reaching for evaluate(), which CDP refuses. Bound the widget measurement, which inherited Playwright's 30s default at each of four depths and so could run far past the request budget, throttle the probe when no click lands so the scan no longer repeats every tick, and release the mouse button through a finally so a failed press cannot leave it held down. Cover the click path: the fixture pinned bounding_box to None, so nothing exercised the code this branch exists to add. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>