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)
<row> (Required)
Provide the row number where you want to select the checkbox in the grid.
<col> (Required)
Provide the col number where you want to select the checkbox in the grid.
<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)
<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 explain 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.

Example 2: Selecting a Checkbox from a Specific Section of a Grid using Optional Parameters
In this example, we explain 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.

Last updated
Was this helpful?