# Click on Table Cell

This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to click on a specific cell within a web table during debugging or execution. The result is stored in the given dynamic variable for further use during test execution.

## Syntax

**Input Value**: `<Row>;<Column>;<ObjectType>;<Index>`

| Argument                           | Description                                                                                                                                                                                  |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<Row><br>(Required)</p>        | Provide the row number of the table cell you want to click.                                                                                                                                  |
| <p>\<Column><br>(Required)</p>     | Provide the column number of the table cell you want to click.                                                                                                                               |
| <p>\<ObjectType><br>(Required)</p> | <p>Provide the object type of cell value which you want to click.<br>Object type values must be one of the following: textbox, button, link, img, checkbox, radiobutton, div, span, etc.</p> |
| <p>\<Index><br>(Required)</p>      | <p>Provide the index of the object type inside the cell.</p><p><strong>Note</strong>: Index is starting from 1.</p>                                                                          |

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

| Argument                                          | Description                                                       |
| ------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>;\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example 1: Clicking on a Specific Table Cell using Row and Column Number**

In this example, we explain how the system performs a click action on a designated cell within a table.

* **Action**: Click on Table Cell
* **Input Value**: 2;3
  * The first argument (**2**) specifies the row number.
  * The second argument (**3**) specifies the column number.
* **Output Value**: {Status}
  * The result of the click operation is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True**: If the cell is clicked successfully.
    * **False**: If the cell is not clicked successfully.
* **Logical Explanation**: The **Click on Table Cell** action takes the values from the **Input Value** column (**2;3**). It identifies the table cell located at row 2 and column 3, performs a click on that table cell. The final result of the operation (**True**) is stored in the **{Status}** variable.

### **Example 2: Performing a Click Action on a Specific Table Cell**

In this example, we explain how to perform a click on a particular cell within a table.

* **Action**: Click on table Cell
* **Input Value**: 2;3;textbox;1
  * The first argument (**2**) specifies the row number of the target cell.
  * The second argument (**3**) specifies the column number of the target cell.
  * The third argument (**textbox**) specifies the object type present inside the cell.
  * The fourth argument (**1**) specifies the index of the object on the screen.
* **Output Value**: {Status}&#x20;
  * The result of the click action is stored in the **{Status}** dynamic variable with the following possible values:
    * **True**: If the cell is clicked successfully.
    * **False**: If the cell is not clicked successfully.
* **Logical Explanation**: The **Click on table Cell** action fetches the input values from the **Input Value** column (**2;3;textbox;1**). It identifies the table cell located at row 2 and column 3, verifies the specified object type (textbox), and uses the given index (1) to  locate the correct element within the specified cell. The action then performs a click on the identified cell object. The final result of the operation (**True**) is stored in the **{Status}** variable.

<figure><img src="/files/18GaEFMV5Nb6YaYTVkeW" alt=""><figcaption></figcaption></figure>


---

# 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/click-on-table-cell.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.
