Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

clearLocation()

Supported in Android

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

Java Example
client.clearLocation();
C# Example
client.ClearLocation();
VBScript Example
client.ClearLocation 
Report
Python Example
self.client.clearLocation()
Perl Example
$client->clearLocation();
  • No labels