Skip to main content

Reboot

Description

This command allows you to reboot the device, while specifying the timeout waiting for the device to reload. You can use the reboot command to reboot the device if you are required to do so as part of the test.

Parameters

NameValueDescription
TimeoutintTimeout in milliseconds. The default is 40000.
info

On some devices, an additional action is needed after reboot of unlocking the device. This can be done using DeviceAction of "Unlock".

Usage

info

Replace <server> with the appropriate URL.

Reboot Command Usage

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
// reboot and wait 2 minutes for the device to reload
// unlock the device after reboot


if(seetest.reboot(120000)){
seetest.deviceAction("Unlock")
}