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.
SubscribeRelated
page.route()browserContext.route()RequestAPIResponseroute.abort()route.continue()route.fallback()route.fetch()