# Select Radio Button

This is a pre-built Action located under the captured grid element. The functionality of this action in Avo Assure is to select the radio button present in the specified grid cell based on the input provided. 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)`

<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 radio button.</td><td></td></tr><tr><td>&#x3C;col><br>(Required)</td><td>Provide the column number where you want to select the radio button.</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 Radio Button from a Specific Table Cell**

In this example, we are explaining how to select a radio button located within a specific cell of a table.

* **Action**: Select Radio Button
* **Input Value**: 3;4
  * The first argument **(3)** specifies the row number.
  * The second argument **(4)** specifies the column number.
* **Output Value**: {Status}
  * The result of the radio button selection is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True:** If the radio button is selected successfully.
    * **False:** If the radio button is not selected successfully.
* **Logical Explanation:** The **Select Radio Button** action reads the value from the **Input Value** column **(3;4)**. This action identifies the table cell at row 3 and column 4, locates the radio button within that cell, and performs the selection. The outcome of this operation (**True**) is stored in the **{Status}** variable.

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

### **Example 2: Selecting a Radio Button Inside a Gird Cell using Optional Parameters**&#x20;

In this example, we are explaining how to select a radio button located within a specific cell of a captured table based on the input parameters provided.

* **Action**: Select Radio Button
* **Input Value**: 2;2;header;left
  * The first argument (**2**) specifies the row number.
  * The second argument (2) specifies the column number used to identify the radio button.
  * The third argument (**header**) refines the search by specifying the column header.
  * The fourth argument (**left**) determines the direction for locating the corresponding column.
* **Output Value**: {Status}
  * The result of the radio button selection is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True**: If the radio button is selected successfully.
    * **False**: If the radio button is not selected successfully.
* **Logical Explanation**: The **Select Radio Button** action reads the details from the **Input Value** column (**2;2;header;left**). This action identifies the table cell at row 3 and column 2, locates the correct column using the provided parameters, and finds the correct radio button. This action attempts to select this radio button. The outcome of this operation (**True**) is stored in the **{Status}** variable.

<figure><img src="/files/1NjzVPXlkAPkRtnZIm2c" 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-radio-button.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.
