Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/src/Page.ts>Page#setGeolocation

Headless Chrome Deno API
Latest
method Page.prototype.setGeolocation
import { Page } from "https://deno.land/x/pptr@1.2.0/src/Page.ts";

Sets the page's geolocation.

Examples

Example 1

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

Returns

Promise<void>