Skip to content
masterclass Buddy

Playwright · Class

Route

Route lets Playwright handle a network request intercepted by page.route() or browserContext.route(). It can stop, forward, modify, inspect, fetch, or fulfill the request.

Last updated

Since
v1.9

Syntax

route.abort(errorCode?)
route.continue(options?)
route.fallback(options?)
route.fetch(options?)
route.fulfill(options?)
route.request()

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

Subscribe
  • page.route()
  • browserContext.route()
  • Request
  • APIResponse
  • route.abort()
  • route.continue()
  • route.fallback()
  • route.fetch()

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