Unselect Checkbox

This is a pre-built Action located under the captured grid element. The functionality of this action in Avo Assure is to unselect the checkbox which is already select withing the 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)

Argument
Description

<row> (Required)

Provide the row number where you want to unselect the checkbox button.

<col> (Required)

Provide the column number where you want to unselect the checkbox 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: Unselecting a Checkbox in a Grid

In this example, we are explaining how to unselect a checkbox located within a specific cell of the captured Grid.

  • Action: Unselect Checkbox

  • Input Value: 4;5

    • The first argument (4) specifies the row number.

    • The second argument (5) specifies the column number.

  • Output Value: {Status}

    • The result of the unselect operation is stored in the {Status} dynamic variable, with the following possible values:

      • True: If the checkbox is unselected successfully.

      • False: If the checkbox is not unselected successfully.

  • Logical Explanation: The Unselect Checkbox action reads the details from the Input Value column (4;5). It identifies the cell located at row 4 and column 5, locates the checkbox object present inside that cell, and attempts to unselect it. The outcome of this action (True) is stored in the {Status} variable.

Example 2: Unselecting 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: Unselect 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 unselect operation 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 Unselect 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 unselecting. The result of this operation (True) is then stored in the {Status} variable.

Last updated

Was this helpful?