Creates and returns a new BrowserContext, if one hasn't already been initialized for the Browser. If one has already been initialized an error is thrown.
noteA 1-to-1 mapping between Browser and BrowserContext means you cannot run BrowserContexts concurrently. Due to this restriction, if one already exists, it must be closed first before creating a new one.
Parameter | Type | Default | Description |
---|---|---|---|
options | object | null |
Returns
Type | Description |
---|---|
object | BrowserContext object |