Method: Playwright::BrowserContext#unroute

Defined in:
lib/playwright_api/browser_context.rb

#unroute(url, handler: nil) ⇒ Object

Removes a route created with [‘method: BrowserContext.route`]. When `handler` is not specified, removes all routes for the `url`.



421
422
423
# File 'lib/playwright_api/browser_context.rb', line 421

def unroute(url, handler: nil)
  wrap_impl(@impl.unroute(unwrap_impl(url), handler: unwrap_impl(handler)))
end