Skip to main content

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

NameTypeDescription
SilentTimeIntegerTime in milliseconds for the UI elements to be static (no changes to the dump).
TimeoutIntegerWaiting timeout in milliseconds.

Usage

info

Replace <server> with the appropriate URL.

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)