WaitForElementToVanish
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. |
Element | String | Select Element to wait for. |
Index | Integer | Element index |
Timeout | Integer | Waiting Timeout in milliseconds. |
Usage
Command can be used to wait for an element to disappear until a given time.
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
WaitforElementToVanish
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), 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
}