> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/web/grid/get-row-number-by-input-text.md).

# Get Row Number by Input Text

This is pre-built Action located under the Table/Grid captured from the AUT Element Name, instructs the Avo Assure to fetch the row number of the given input text in the grid and save the result in the dynamic variable.

### Syntax

**Input Value:** `<Text>;<header/body>(optional);<left/right>(optional);<row_attr>(optional)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;text><br>(Required)</td><td>Specifies the input text to search for within the table/Grid</td><td></td></tr><tr><td><p>&#x3C;header/body></p><p>(Optional)</p></td><td>Specifies whether the search should be performed in the table header or body.</td><td></td></tr><tr><td><p>&#x3C;left/right></p><p>(Optional)</p></td><td>Indicates the direction in which to search for the text.</td><td></td></tr><tr><td>&#x3C;col_attr><br>(Optional)</td><td>Additional column attribute to help narrow down the column match.</td><td></td></tr></tbody></table>

**Output Value**

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable><br>(Optional)</td><td>This variable stores the rows count of grid or table</td><td></td></tr><tr><td>&#x3C;Dynamic Variable><br>(Optional)</td><td>This variable holds the results in <strong>True</strong> and <strong>False</strong></td><td></td></tr></tbody></table>

**Example**

**Retrieves the row number based on the specified input text in a table**\
\
The **Get Row Number by Input Text** action takes the value from the Input Value column (e.g., **James D Davis;body;left**) and searches for the specified text in the defined section and direction of the table. The resulting row number is stored in the **{RowNumber}** variable, while the execution status is stored in the **{Status}** variable, with the following possible values:

* **True** – if the row number is retrieved successfully.
* **False** –if the operation fails or an error occurs.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FokOa9vA3NxoEac0moNGy%2Fimage.png?alt=media&amp;token=3dd7fafc-280f-4b9e-a362-61d4601c8f8e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F7lAUGeccVhCd0CcIX4PD%2FScreenshot%202025-05-27%20145842.png?alt=media&amp;token=fbe6c505-194a-42cf-918f-cf3eb6410523" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/grid/get-row-number-by-input-text.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
