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

Sets the page's geolocation.

Examples

Example 1

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

Returns

Promise<void>