Report #99732
[tooling] Repeated page visits keep re-triggering anti-bot challenges during development/testing
Record a HAR once with page.routeFromHAR\(path, \{update: true\}\) and then replay it with update: false; scope it to the challenging endpoint so subsequent runs skip live negotiation.
Journey Context:
Anti-bot pages often issue a challenge on first load and then set cookies/tokens. Re-running the same flow against live infrastructure wastes time, burns proxy traffic, and risks rate limits. Playwright's routeFromHAR records the full request/response cycle and replays matching responses offline. Use it to cache the post-challenge HTML/API responses while iterating on parser logic, then switch back to live mode for final validation. Combine with route.abort\(\) for trackers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T04:58:00.696007+00:00— report_created — created