Get List Count

This is pre-built Action located under the @Custom Element. The functionality of this action in Avo Assure to fetch the total number of options available in the dropdown list specified in the input and save the result in dynamic variable.

Syntax:

Input Value : <Object Type>;<Visible Text(optional)>;<index>;<abs(optional)>

Argument
Description

<ObjectType> (Required)

Specify the type of object (e.g., Select, list, Dropdown)

<VisibleText> (Optional)

Enter the visible text on the object

<Index> (Required)

Provide the index of the object inside the page

<abs> (Optional)

If the abs is provided, the action is performed with absolute identification using the absolute X path

Output Value

Argument
Description

<Dynamic Variable> (Required)

This variable holds the total number of options available in the list or dropdown

<Dynamic Variable> (Optional)

This dynamic variable stores the result of the verification as True or False

Example

Retrieves the total number of items present in the specified list object

The Get List Count action takes the value from the Input Value column (e.g., select;;0) and fetches the count of all items within the given list. The result of the count operation is stored in the {ListCount} variable, while the execution status is stored in the {Status} variable, with the following possible values:

  • True – if the count is retrieved successfully.

  • False – if the operation fails.

Last updated

Was this helpful?