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)

Argument
Description

<row> (Required)

Provide the row number where you want to select the radio button.

<col> (Required)

Provide the column number where you want to select the radio button.

<header/body>

(Optional)

Provide whether the reference you want to use is in the grid header or body.

<left/right>

(Optional)

Provide the direction you want to use to locate the cell relative to a known value or position.

<row_attr> (Optional)

Provide any additional row attribute or identifier you want for accurate targeting.

<col_attr> (Optional)

Provide any additional column attribute or identifier you want for accurate targeting.

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.

Example 2: Selecting a Radio Button Inside a Gird Cell using Optional Parameters

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.

Last updated

Was this helpful?