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
Name | Value | Description |
---|---|---|
Time | Integer | Time to sleep in milliseconds. |
Usage
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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)