Reset IP geolocation (FR)

Perfecto command: perfecto:geoLocation:reset

Purpose

Resets the IP geolocation of the device under test (DUT) to the device's physical location.

Return value

Boolean true/false

Examples

Copy

Java sample

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

C# sample

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

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.