Skip to main content
Module

x/puppeteer/mod.ts>BrowserContext#overridePermissions

A port of puppeteer running on Deno
Latest
method BrowserContext.prototype.overridePermissions
Re-export
import { BrowserContext } from "https://deno.land/x/puppeteer@16.2.0/mod.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>