# 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                                                    |
| ----------------------------- | -------------------------------------------------------------- |
| <p>\<text> <br>(Required)</p> | Provide the specific text you want to search within the table. |

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

| Argument                                 | Description                                                                    |
| ---------------------------------------- | ------------------------------------------------------------------------------ |
| <p>\<Dynamic Variable><br>(Required)</p> | This dynamic variable stores the row number where the specified text is found. |
| <p>\<Dynamic Variable><br>(Optional)</p> | 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/table-1/get-row-number-by-text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
