SyncElements
Description
Use this command to wait for all UI elements on a page to be ready. This works on the dump level. It returns true when there are no changes to the elements dump for the specified period of time.
Parameters
Name | Type | Description |
---|---|---|
SilentTime | Integer | Time in milliseconds for the UI elements to be static (no changes to the dump). |
Timeout | Integer | Waiting timeout 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
Example
SyncElements
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
//Synch elements.
seetest.syncElements(3000, 10000)