Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method BrowserContext.prototype.overridePermissions
import { BrowserContext } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/common/Browser.d.ts";

Examples

Example 1

const context = browser.defaultBrowserContext();
await context.overridePermissions('https://html5demos.com', [
  'geolocation',
]);

Parameters

origin: string
permissions: Permission[]
  • An array of permissions to grant. All permissions that are not listed here will be automatically denied.

Returns

Promise<void>