Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
BrowserContext
BrowserContext
s provide a way to operate multiple independent sessions, with separate pages, cache, and cookies. A default BrowserContext
is created when a browser is launched.
The browser module API is used to create a new BrowserContext
.
If a page opens another page, e.g. with a window.open
call, the popup will belong to the parent page’s BrowserContext
.