Latest
method Page.prototype.setGeolocation
import { Page } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Sets the page's geolocation.

Examples

Example 1

await page.setGeolocation({latitude: 59.95, longitude: 30.31667});

Parameters

options: GeolocationOptions

Returns

Promise<void>