Browser Domain
The Browser domain defines methods and events for browser managing.
Methods
Methods
Browser.addPrivacySandboxCoordinatorKeyConfig #
Configures encryption keys used with a given privacy sandbox API to talk to a trusted coordinator. Since this is intended for test automation only, coordinatorOrigin must be a .test domain. No existing coordinator configuration for the origin may exist.
Parameters
coordinatorOrigin stringkeyConfig stringbrowserContextIdOptional
BrowserContext to perform the action in. When omitted, default browser context is used.
Browser.addPrivacySandboxEnrollmentOverride #
Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
Parameters
url stringBrowser.getVersion #
Returns version information.
Return object
protocolVersion stringProtocol version.
product stringProduct name.
revision stringProduct revision.
userAgent stringUser-Agent.
jsVersion stringV8 version.
Browser.resetPermissions #
Reset all permission management for all origins.
Parameters
browserContextIdOptional
BrowserContext to reset permissions. When omitted, default browser context is used.