Playwright::Route
Whenever a network route is set up with page.route(url, handler) or browserContext.route(url, handler), the Route object allows to handle the route.
Instance methods
abort
Sourcecontinue(overrides : ContinueOverrides | Nil) : Nil
Continues route's request with optional overrides.
continue
Sourcefulfill(response : FulfillResponse) : Nil
Fulfills route's request with given response. An example of fulfilling all requests with 404 responses:
An example of serving static file: