Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
SEO Metadata
titleSeeTest Automation - Get Location

Get the current Geo location Using SeeTest Automation. 

getLocation()

Supported_os
SupportIOStrue
SupportAndroidtrue

Description

Get the current Geo location.


Usage

Get the device Geo location(<latitude>, <longitude>, <altitude>).

Code Block
languagejava
String[] location = client.getLocation().split(",");
String latitude = location[0];
String longitude = location[1];
String altitude = location[2];



Code Examples

Code Block
languagejava
titleJava Example
linenumberstrue
 String location = client.getLocation();