Skip to main content

Sleep

Description

Use this command to pause the script for a specified time in milliseconds. You can use this to wait for an application to fully load.

Parameters

NameValueDescription
TimeIntegerTime to sleep in milliseconds.

Usage

info

Replace <server> with the appropriate URL.

Sleep

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

...
...

// Wait for 5000 milliseconds.
seetest.sleep(5000)