Get List Count
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the @Custom Element Name. It instructs the Avo Assure Client to fetch the total number of options available in the dropdown list specified in the input and save the result in output variable.
Input: <Object Type>;<Visible Text(optional)>;<index>;<abs(optional)>
For above syntax user needs to give specific Object type, visible text of the object (optional) along with element index of the object, the value which needs to be set on the object and abs.
Note: if for last argument abs is defined then the Action must be executed with absolute preformation with the specified visible text in the input.
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
In this scenario, the user is testing the Amazon application and user wants to verify the count of the products displayed in the product list. With the help of the Get List Count action, the user can fetch the total number of products presented in the list.
select;;0
This action should verify the given list count and store the result in the output variable {Count}, as 5.
The Get List Count action successfully fetches the count in the given list, and the output variable {Count} contains 5, which can be utilized for display or further processing.