Get Object Count on Web Page
This is a pre-built Action located under the Custom Element. The functionality of this action in Avo Assure to find the number of occurrences of the object on the web page, and the result is stored in a dynamic variable.
Syntax
Input Value:<ObjectType>;<VisibleText(optional)>;<Index>;<abs(optional)>
<ObjectType> (Required)
Specify the type of the object
<VisibleText> (Optional)
Enter the visible text on the object
<Index> (Required)
Provide the position of the element, which helps to identify the value based on the sequence in list . (starting from 0)
<abs> (Optional)
If the abs is provided, the action is performed with absolute identification using the absolute X path
Note: The user needs to provide the type of object, its visible text of the element (if needed), its index, and the abs.
To skip an optional input value, use an extra semicolon (;).
Output Value
<Dynamic Variable> (Required)
This dynamic variable holds the total number of objects found
<Dynamic Variable>
(Optional)
This dynamic variable holds the status as True or False
Example
Retrieves the count of matching objects present on the web page
The Get Object Count on Web Page action takes the value from the Input Value column (e.g., textbox;;0) and identifies all matching elements based on the provided object type and other optional parameters. The result of the count is stored in the {Count} variable, while the execution status is stored in the {Status} variable, with the following possible values:
True – if the object count is retrieved successfully.
False – if the count retrieval fails

Last updated
Was this helpful?