Get Total Row Count
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the Table/Grid captured from the AUT Element Name, that instructs the Avo Assure to retrieve the total count of the rows present in the table/grid and save the result in the given dynamic variable.
Input Value: <header/body>(optional);<left/right>(optional);visible(optional)
<header/body>
(optional)
<header/body> This part specifies the section of the table where the row count should be taken. 1. header → Count rows in the table header (header;left/right) 2. body → Count rows in the table body (body;left/right)
<left/right>
(optional)
Indicates the direction in which to begin parsing the table when counting rows. 1. left → Counts only the rows fixed on the left side. 2. right → Counts only the rows fixed on the right side
visible
(optional)
It is case-sensitive and provides the total row count on the current page of the specified grid or table
N/A
If the input is not specified, it will provide the total row count from all the pages of the grid or table
Output Value:
<Dynamic Variable> (Optional)
This variable stores the rows count of grid or table
<Dynamic Variable> (Optional)
This variable holds the results in True and False
Example 1
Retrieve and store row count from a specific Grid section The Get Total Row Count action takes the value from the Input Value column (e.g., body;left) and counts the number of rows in the specified section and direction of the table/Grid. The result of the row count operation is stored in the {RowCount} variable, while the execution status is stored in the {Status} variable, with the following possible values:
True – if the row count is retrieved successfully
False – if counting fails or an error occurs.
Example 2
Get the total number of rows from the table/Grid (Input value - N/A) The Get Total Row Count action retrieves the total number of rows present in the set table/Grid. The result is stored in the {RowCount} variable, and the action status is saved in the {Status} variable with the following possible values:
True – if the row count is retrieved successfully
False –if counting fails or an error occurs.
Example 3
Retrieve visible row count from a specific Grid section The Get Total Row Count action takes the value from the Input Value column (e.g., visible) and counts the total number of rows present in the current page of the table/Grid. The result of the row count operation is stored in the {RowCount} variable, while the execution status is stored in the {Status} variable, with the following possible values:
True – if the row count is retrieved successfully
False – if counting fails or an error occurs.