Skip to content
masterclass Buddy

Playwright · Method

page.route

page.route() intercepts matching network requests. A handler can modify, mock, or block each request.

Last updated

Since
before v1.9

Syntax

await page.route(url, handler, options)

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

Subscribe
  • browserContext.route()
  • route.continue_()
  • route.fulfill()
  • route.abort()
  • route.fetch()
  • page.unroute()
  • page.routeFromHAR()

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