Skip to content

v1.2.2 — mockResponse()

Choose a tag to compare

@sagarpalsapure sagarpalsapure released this 03 Jul 10:26

Added

  • mockResponse(patterns, response) on the raw-CDP driver (connectOrca()) — fulfill matching real requests with a canned status/headers/body via CDP Fetch.fulfillRequest while letting the rest pass through. The reliable alternative to Playwright's route.continue(), which hangs on real requests through the bridge. Returns { counts: { mocked, passed }, stop() }.

Verified / not added

  • Probed Network.getResponseBody for HAR-with-bodies: unreliable through the proxy (No resource with given identifier found), so it's intentionally left out.

Tested 30/30 against Orca 1.4.120.