Skip to content
masterclass Buddy

Playwright · Function

page.waitForResponse

page.waitForResponse waits for a matching network response. Start it before the action that triggers the request, then await the returned response.

Last updated

Syntax

page.waitForResponse(urlOrPredicate, action)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Page
  • Response
  • page.route()
  • browserContext.route()
  • Route.fulfill()

Source: Network | Playwright. Checked 2026-11-03.