Taiko
Documentation

Home / API Reference

setLocation

Overrides the Geolocation Position

Examples

await setLocation({ latitude: 27.1752868, longitude: 78.040009, accuracy:20 })

Parameters


options

Latitude, longitude and accuracy to set the location.


options.latitude

Mock latitude


options.longitude

Mock longitude


options.accuracy

Mock accuracy


Returns

Promise<void>