Page tree
Skip to end of metadata
Go to start of metadata

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

  • NATIVE
  • WEB
  • TEXT
 Select the Zone in which the table is stored
TableLocator StringLocator of the table class element
TableIndexInteger 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.

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);



  • No labels