Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method BrowserContext.prototype.overridePermissions
Re-export
import { BrowserContext } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";

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>