Description
Verification command to check if an element exists.
Parameters
Name | Value | Description |
---|---|---|
zone | String with one of the following values
| Zones which define the way the element will be identified. |
Element | String | Identification of Element in the device screen. |
Index | Integer | Element to find index |
Usage
Command to check of element is found in screen. If not found throws and exception.
Set Experitest Url
Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.
- For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io:443/wd/hub
- For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com
Example
VerifyElementFound
DesiredCapabilities dc = new DesiredCapabilities(); driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc); seetest = new SeeTestClient(driver); dc.setCapability(MobileCapabilityType.UDID, "<deviceid>"); ... ... // Check if the element representing "text" = "login" is found in NATIVE zone. seetest.verifyElementFound("NATIVE", "text=Login", 0);