Reset device location (FR)
Perfecto Command
mobile:location:reset
Supported OS: iOS, Android
Purpose
Stops setting the device location. This returns the device to its current actual location. Used alongside the Set device location function.
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);