- extends:
- event: ‘backgroundpage’
- chromiumBrowserContext.backgroundPages()
- browserContext.addInitScript(script[, arg])
- browserContext.clearPermissions()
- browserContext.cookies([urls])
- browserContext.exposeFunction(name, playwrightFunction)
- browserContext.newPage()
- browserContext.route(url, handler)
- browserContext.setExtraHTTPHeaders(headers)
- browserContext.setHTTPCredentials(httpCredentials)
- browserContext.unroute(url[, handler])
event: ‘backgroundpage’
- <>
Emitted when new background page is created in the context.
event: ‘serviceworker’
- <>
Emitted when new service worker is created in the context.
chromiumBrowserContext.backgroundPages()
- returns: <<Page>> All existing background pages in the context.
chromiumBrowserContext.newCDPSession(page)
- <Page> Page to create new session for.
- returns: <<CDPSession>> Promise that resolves to the newly created session.