Page tree
Skip to end of metadata
Go to start of metadata

Description

Sets sleep until element is identified.


Parameters

Name

Value

Description

Zone

String with one of the following values

  • NATIVE
  • WEB
  • TEXT
Zones which define the way the element will be identified.
ElementStringQuery to identify the objects/Name of the element.
IndexIntegerElement index
TimeoutIntegerWaiting Timeout in milliseconds.

Usage

Command can be used to find element till a timeout. This can be useful in Web application in which element is loads after a delay.

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.

Example

WaitForElement
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
            
...
...
//Waits for the Element with "id=FirstName" until 10000 milliseconds
seetest.waitForElement("WEB", "id=FirstName", 0, 10000)
  • No labels