Get geo-location (FR)

Perfecto command: perfecto:geoLocation:get

Purpose

Retrieves the IP geolocation set for the device under test (DUT).

Return value

Boolean true/false

Examples

Copy

Java sample

Map<String, Object> params = new HashMap<>();
driver.executeScript("perfecto:geoLocation:get");
Copy

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
driver.executeScript("perfecto:geoLocation:get");

Error messages

The following table lists the error numbers and messages that may occur.

Error number*

Error message

Description

173

Perfecto Connect & Geolocation are not supported concurrently.

Returned if you try work with IP geolocations while connected to Perfecto Connect

* Only relevant for web testing.