Skip to main content

SeeTestAutomation- ClearLocation

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

clearLocation()

Description

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

info

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 Expand source

client.ClearLocation();

VBScript Example Expand source

client.ClearLocation 
Report

Python Example Expand source

self.client.clearLocation()

Perl Example Expand source

$client->clearLocation();