📅  最后修改于: 2022-03-11 15:04:00.058000             🧑  作者: Mango
const context = browser.defaultBrowserContext()
await context.overridePermissions("https://chercher.tech/practice/geo-location", ['geolocation'])
await page.setGeolocation({latitude: parseFloat(latitude), longitude: parseFloat(longtitude)})