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.
SubscribeRelated
PageResponsepage.route()browserContext.route()Route.fulfill()