Recover Device (FR)

Perfecto Command

mobile:handset:recover

Purpose

The device will not be rebooted; it will be disconnected and reconnected to the Perfecto data center, and returned unlocked. To reboot the device, use the Reboot device function.

Recovery will take a few minutes to complete. Use this function at the end of your script instance of the device in error. This is useful for your next run.

Important: Devices continuously in error state should be checked. In such cases, contact your Perfecto system administrator for support.
Restriction: When using this command in Automation scripts, the execution report video may not be available.

Parameters

None

Return Value

None

Exceptions

None

Examples

Copy

Java sample

Map<String, Object> pars = new HashMap<>();
String reStr = (String) driver.executeScript("mobile:handset:recover", pars);
Copy

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
String reStr = (String) driver.ExecuteScript("mobile:handset:recover", pars);