Reboot Device (FR)
Perfecto Command
mobile:handset:reboot
Purpose
Reboots the device by performing a software restart on iOS and Android devices and returns it in the unlocked state.
Parameters
None
Return Value
None
Exceptions
None
Examples
Copy
Java sample
Map<String, Object> pars = new HashMap<>();
String reStr = (String) driver.executeScript("mobile:handset:reboot", pars);
Copy
C# sample
Dictionary<String, Object> pars = new Dictionary<String, Object>();
String reStr = (String) driver.ExecuteScript("mobile:handset:reboot", pars);