VerifyElementFound
Description
Verification command to check if an element exists.
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 | 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.
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
VerifyElementFound
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.verifyElementFound("NATIVE", "text=Login", 0);