ReadonlyeventStreams browser-context events after adapting their payloads to wrapper values.
Details
Event listeners are removed when stream consumption ends. The stream also ends when the browser context closes.
ReadonlyaddSets the cookies for the browser context.
ReadonlyaddAdds a script which would be evaluated in one of the following scenarios:
ReadonlybrowserReturns the browser that the context belongs to.
ReadonlyclearClears the cookies from the browser context.
ReadonlyclearClears the permissions from the browser context.
ReadonlyclockAccess the clock.
ReadonlycloseCloses the browser context.
ReadonlycookiesReturns the cookies for the browser context.
ReadonlycredentialsAccess the virtual WebAuthn credentials manager.
ReadonlygrantGrants permissions to the browser context.
ReadonlyisIndicates that the browser context is in the process of closing or has already been closed.
ReadonlynewOpens a new page in the browser context.
ReadonlypagesReturns the list of all open pages in the browser context.
ReadonlysetSets the default navigation timeout for the browser context.
ReadonlysetSets the default timeout for the browser context.
ReadonlysetSets the extra HTTP headers for the browser context.
ReadonlysetSets the geolocation for the browser context.
ReadonlysetSets the offline state for the browser context.
ReadonlysetSets the storage state for the browser context.
ReadonlystorageReturns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.
ReadonlytracingAccess the tracing.
Effect-friendly operations for an isolated Playwright browser context.
When to use
Use a context to isolate cookies, permissions, storage, pages, and tracing within one browser. Contexts created by
Browser.newContextare scoped and close automatically when their scope ends.Since
0.1.0