Method: Appium::Core::Android::Device#set_location

Defined in:
lib/appium_lib_core/android/device.rb

#set_location(latitude, longitude, altitude, speed: nil, satellites: nil) ⇒ Object

Set the location of the device.

Examples:


driver.set_location 10, 10, 0

Parameters:

  • Set the latitude.

  • Set the longitude.

  • Set the altitude.

  • (defaults to: nil)

    Set the speed to apply the location on Android real devices in meters/second @since Appium 1.21.0 and in knots for emulators @since Appium 1.22.0.

  • (defaults to: nil)

    Sets the count of geo satellites being tracked in range 1..12 @since Appium 1.22.0. This number is respected on Emulators.



# File 'lib/appium_lib_core/android/device.rb', line 91