Get Row Number by Text

This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to retrieve the row number of the specified text present in the table. The result is stored in the given dynamic variable for further use during test execution.

Syntax

Input Value: <text>

Argument
Description

<text> (Required)

Provide the specific text you want to search within the table.

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the row number where the specified text is found.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Retrieving the Row Number of a Specific Text in a Table

In this example, we explain how to identify the row number of a particular text within a table.

  • Action: Get Row Number by Text

  • Input Value: Home Improvement Loan

    • The argument (Home Improvement Loan) specifies the text to be searched within the table rows.

  • Output Value: {Row no}

    • The row number of the matched text (5) is stored in the {Row no} dynamic variable.

    • If a second output variable is provided, the action returns the status as True or False:

      • True: If the row number is retrieved successfully.

      • False: If the row number is not retrieved successfully.

  • Logical Explanation: The Get Row Number by Text action reads the search text from the Input Value column (Home Improvement Loan). The action scans each row of the captured table to find the cell that contains the specified text. When the matching text is found, the action retrieves its corresponding row number (5) and stores it in the {Row no} variable.

Last updated