puppeteer/new-docs/puppeteer.browsercontext.clearpermissionoverrides.md
2020-06-23 07:22:10 +02:00

730 B

Home > puppeteer > BrowserContext > clearPermissionOverrides

BrowserContext.clearPermissionOverrides() method

Clears all permission overrides for the browser context.

Signature:

clearPermissionOverrides(): Promise<void>;

Returns:

Promise<void>

Example

const context = browser.defaultBrowserContext();
context.overridePermissions('https://example.com', ['clipboard-read']);
// do stuff ..
context.clearPermissionOverrides();