Description
This command allows you to extract the numbers of one or more rows of a given table, whether the table is entirely visible on the screen or not.
Note: This command will work only on instrumented applications.
Parameters
Name | Value | Description |
---|---|---|
Zone | String with one of the following values
| Select the Zone in which the table is stored |
TableLocator | String | Locator of the table class element |
TableIndex | Integer | Index in case of multiple tables on the screen |
Visbile | Boolean | Boolean parameter. Set true to return the number of visible rows only, or false to return the total number of rows including ones that are not visible. |
Usage
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
In the following example, number of rows of UICatalog application is extracted.
ElementGetTableRowsCount
DesiredCapabilities dc = new DesiredCapabilities(); driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc); seetest = new SeeTestClient(driver); dc.setCapability(MobileCapabilityType.UDID, "<deviceid>"); ... ... // Gets the number of rows. int int3 = client.elementGetTableRowsCount("NATIVE", "xpath=//*[@class='UITableView']", 0, true);