Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

puppeteer enable location permission

const context = browser.defaultBrowserContext()
await context.overridePermissions("https://chercher.tech/practice/geo-location", ['geolocation'])
await page.setGeolocation({latitude: parseFloat(latitude), longitude: parseFloat(longtitude)})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #puppeteer #enable #location #permission
ADD COMMENT
Topic
Name
7+3 =