Skip to main content
Sets the device’s GPS location to a latitude and longitude. Use it to test location-dependent flows, such as store finders or region-specific pricing, without moving the device.

Parameters

Examples

Move the device to San Francisco before opening the app’s map screen:

Notes

  • The step changes the reported coordinates, not the location permission. Grant the app location access first, or use toggleSettings to turn Android location services on.
  • On iOS, the step fails with a configuration error when the device provider doesn’t support geolocation.