Skip to main content

VerifyElementNotFound

Description

Verify that an element is NOT found in a specified zone

Parameters

NameValueDescription
zoneString with one of the following values



* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
ElementStringIdentification of Element in the device screen.
IndexIntegerElement to find index

Usage

Command can be used to check if the specified element is not found in the device screen, if it is found it will lead to an Exception.

info

Replace <server> with the appropriate URL.

Example

**

**

VerifyElementNotFound

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
// Check if the element representing "text" = "login" is found in NATIVE zone.
seetest.verifyElementNotFound("TEXT", "Login", 0);