# Select Checkbox

This is a pre-built Action located under the captured grid element. The functionality of this action in Avo Assure is to select the checkbox present in the specified grid cell. The result is stored in the given dynamic variable for further use during test execution.

## Syntax

**Input Value**: `<row>;<col>;<header/body>(optional);<left/right>(optional);<row_attr>(optional);<col_attr>(optional)`&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;row><br>(Required)</td><td>Provide the row number where you want to select the checkbox in the grid.</td><td></td></tr><tr><td>&#x3C;col><br>(Required)</td><td>Provide the col number where you want to select the checkbox in the grid.</td><td></td></tr><tr><td><p>&#x3C;header/body></p><p>(Optional)</p></td><td>Provide whether the reference you want to use is in the grid header or body.</td><td></td></tr><tr><td><p>&#x3C;left/right></p><p>(Optional)</p></td><td>Provide the direction you want to use to locate the cell relative to a known value or position.</td><td></td></tr><tr><td>&#x3C;row_attr><br>(Optional)</td><td>Provide any additional row attribute or identifier you want for accurate targeting.</td><td></td></tr><tr><td>&#x3C;col_attr><br>(Optional)</td><td>Provide any additional column attribute or identifier you want for accurate targeting.</td><td></td></tr></tbody></table>

**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: Selecting a Checkbox in a Grid**

In this example, we are explaining how to perform a checkbox selection within a specific cell of a captured Grid.

* **Action**: Select Checkbox
* **Input Value**: 4;5
  * The first argument (**4**) specifies the row number.
  * The second argument (**5**) specifies the column number where the checkbox is located. This action identifies the checkbox present in the specified cell and performs the selection.
* **Output Value**: {Status}
  * The result of the checkbox selection is stored in the **{Status}** dynamic variable, with the following possible values:
  * **True**: If the checkbox is selected successfully.
  * **False**: If the checkbox is not selected successfully.
* **Logical Explanation**: The **Select Checkbox** action reads the details from the **Input Value** column (**4;5**). It locates the grid cell positioned at row 4 and column 5, identifies the checkbox object present within that cell, and performs the selection action. The result of this operation (**True**) is stored in the **{Status}** variable.

<figure><img src="/files/EpL0nZAOVYOj298shMrd" alt=""><figcaption></figcaption></figure>

### **Example 2: Selecting a Checkbox from a Specific Section of a Grid using Optional Parameters**

In this example, we are explaining how to perform a checkbox selection within a specific cell of a captured grid.

* **Action:** Select Checkbox
* **Input Value:** 3;2;header;left
  * The first argument (**3**) specifies the row number.
  * The second argument (**2**) specifies the column number where the checkbox is located.
  * The third argument (**header**) directs the action to retrieve the cell from the header section of the grid instead of the default body section.
  * The fourth argument (**left**) specifies that the action focuses on the left section of the grid when identifying the checkbox.
* **Output Value:** {Status}
  * The result of the checkbox selection is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True:** If the checkbox is selected successfully.
    * **False:** If the checkbox is not selected successfully.
* **Logical Explanation:** The **Select Checkbox** action reads the details from the **Input Value** column (**3;2;header;left**). It targets the grid cell positioned at row 3 and column 2, specifically within the header area and on the left side of the grid. After the appropriate cell is identified, the action locates the checkbox object within it and performs the selection. The result of this operation (**True**) is then stored in the **{Status}** variable.

<figure><img src="/files/8wz7eHw14BTiBgyAGEyc" 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/grid-1/select-checkbox.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.
