verifyCount
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 verify the user-provided input count with the total number of options present in the dropdown list and store the result in output variable.
Input: <Object Type >;<Visible Text(optional)>;<index>;<count>;<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. Count is a numerical value that needs to be provided as input.
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 an e-commerce website. The user needs to check that the product category dropdown shows the correct number of categories. The user is given an expected number of categories as input. With the help of “Verify count” action the goal is to confirm that the actual number of categories in the dropdown matches this expected number.
select;;0;36
This action should verify the count of the category as 36 and store the result in output variable {Count} as True.
The verifyCount action successfully verify the count as 36, and the output variable {Count} contains True, which can be utilized for display or further processing.