Get Total Column Count

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

Syntax

Input Value: <header/body>(optional);<left/right>(optional)

Argument
Description

<header/body>

(optional)

<header/body> (Optional)

  • Provide the section of the grid from which the column count is taken.

    • header: Counts columns in the grid header (header;left/right).

    • body: Counts columns in the grid body (body;left/right).

<left/right>

(optional)

<left/right> (Optional)

  • Specify whether to count columns in the left fixed or right fixed section of the grid.

    • left: Counts only the columns fixed on the left side.

    • right: Counts only the columns fixed on the right side.

Input - N/A

If no input is provided, the action counts all visible columns in the grid.

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Optional)

This dynamic variable stores the total column count of grid.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example 1: Retrieving the Total Number of Columns in a Grid

In this example, we are explaining how to retrieve the total number of columns present in the captured table.

  • Action: Get Total Column Count

  • Input Value: N/A

    • This action does not require any input value. It reads the grid and retrieves the total number of columns present in the grid.

  • Output Value: {Count}

    • The total number of columns available in the grid (5) is stored in the {Count} dynamic variable.

    • If a second output variable is defined, it stores the action status with the following possible values:

      • True: If the total column count is retrieved successfully.

      • False: If the total column count is not retrieved successfully.

  • Logical Explanation: The Get Total Column Count action does not require any input value. It reads the captured grid element and calculates the total numbers of columns present in it. The retrieves total column count (5) is stored in the {Count} variable.

Example 2: Retrieving the Total Number of Columns in a Grid using Optional Parameters

In this example, we are explaining how to retrieve the total number of columns present in the captured table.

  • Action: Get Total Column Count

  • Input Value: body;right

    • The first argument (body) indicates that the operation should be executed within the grid body.

    • The second argument (right) defines the search direction for locating the cell.

  • Output Value: {Value}

    • The total number of columns available in the grid (5) is stored in the {Value} dynamic variable.

    • If a second output variable is defined, it stores the action status with the following possible values:

      • True: If the total column count is retrieved successfully.

      • False: If the total column count is not retrieved successfully.

  • Logical Explanation: The Get Total Column Count action reads the details from the Input Value column (body;right). It reads the captured grid element and calculates the total numbers of columns present in it. The retrieves total column count (5) is stored in the {Value} variable.

Last updated

Was this helpful?