clearLocation()

Description

The command gives the ability to reset the device’s location services after the user executes the SeeTestAutomation- SetLocation command.


Notes:

  • In Android, command supported since Android 4.4.
  • Pre-requests: Enable the location provider service you wish to work with, by:
    • For Android:
      • SetProperty. For example:
        • if you want to the command to work based on GPS only .i.e. 'Device Only Mode', prior to clearLocarion, you can call:

          client.setProperty("location.service.gps", "true");
          client.setProperty("location.service.network", "false");
        • if you want to the command to work based on GPS and Network .i.e. 'High Accuracy Mode', prior to clearLocarion, you can call:

          client.setProperty("location.service.gps", "true");
          client.setProperty("location.service.network", "true");
    • For iOS:
      • on your device: Go to: Setting >> Privacy >> Location Services >> enable "Locations Services".


Code Examples

client.clearLocation();
client.ClearLocation();
client.ClearLocation 
Report
self.client.clearLocation()
$client->clearLocation();