createBrowserContext

Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.


suspend fun createBrowserContext(disposeOnDetach: Boolean? = null, proxyServer: String? = null, proxyBypassList: String? = null, originsWithUniversalNetworkAccess: List<String>? = null): Target.CreateBrowserContextReturn

Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.

Parameters

disposeOnDetach

If specified, disposes this context when debugging session disconnects.

proxyServer

Proxy server, similar to the one passed to --proxy-server

proxyBypassList

Proxy bypass list, similar to the one passed to --proxy-bypass-list

originsWithUniversalNetworkAccess

An optional list of origins to grant unlimited cross-origin access to. Parts of the URL other than those constituting origin are ignored.