Reset device location (FR)

Perfecto Command

mobile:location:reset

Purpose

Stops setting the device location. This returns the device to its current actual location. Used alongside the Set device location function.

Restriction: This command is not supported for iOS devices.

Parameters

None

Return Value

None

Exceptions

None

Examples

Copy

Java sample

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

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
Object result = driver.ExecuteScript("mobile:location:reset", pars);