For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Row Number by Text

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

Syntax

Input Value: <Text>

Argument
Description

<Text> (Required)

Provide the text to search for in the table.

Note:

  • Row numbering starts at 1. The header is counted as row 1, and the first data row is row 2.

  • The action ignores letter case when matching text. For example, ABC and abc are treated as a match. However, all characters must match exactly, so ABC and ABC1 are different values.

  • If the same text appears in multiple rows, the action returns the first matching row from the top.

  • Use a unique value to identify the correct row.

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

Argument
Description

<Dynamic Variable> (Required)

Stores the row number where the specified text is found.

<Dynamic Variable> (Optional)

Stores the execution status as True or False.

Example: Retrieving a Row Number by Text

In this example, the action searches for Home Improvement Loan in a table and retrieves the row number of the matching cell.

  • Action: Get Row Number by Text

  • Input Value: The Secreate

  • Output Value: {Row no};{Status}

    • The action searches the table for the specified text and stores the matching row number in the {Row no} dynamic variable.

    • The following execution status is stored in the {Status} variable.

      • True: The row number is retrieved successfully.

      • False: The specified text is not found, or an error occurs during execution.

Logical Explanation: The Get Row Number by Text action takes the text (For example, The Secreate) from the Input Value column and searches for a matching cell in the table. It returns the row number, including the header in the count, and stores the result in the {Row no} dynamic variable as 3. If the optional status variable is provided, the action also stores True.

Last updated