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

Description

Wait for Element to disappear from the screen.


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.
ElementStringSelect Element to wait for.
IndexIntegerElement index
TimeoutIntegerWaiting Timeout in milliseconds.

Usage

Command can be used to wait for an element to disappear until a given time.

Set Experitest Url

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

Example

WaitforElementToVanish
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 identified by XPATH //*[@accessibilityLabel='Network connection in progress'] to disappear until 10000 milliseconds
if(seetest.waitForElementToVanish("NATIVE", "//*[@accessibilityLabel='Network connection in progress']", 0, 10000)){
// If statement
}
  • No labels