Get Object Count on Web Page
Last updated
Was this helpful?
Last updated
Was this helpful?
The Get Object Count on Web Page action in the Avo Assure is found under the @Custom Element Name. It instructs the Avo Assure Client to find the number of occurrences of the object on the web page and save the result (total Count of objects) in the given output variable.
Input: <ObjectType>;<VisibleText(optional)>;<Index>;<abs(optional)>
Note: The user needs to provide the type of object, its visible text of the element (if needed), its, and the abs.
Output:<Dynamic
element index
Variable>;<Dynamic Variable>(optional)
User is testing the login page of an application. The page contains multiple buttons, including Login, Forgot Password, and Sign Up. User wants to verify that the page contains the correct number of buttons. By using the "Get Object Count on Web Page" action in Avo Assure, the user can count the total number of buttons present on the login page accurately.
button;;0
The login page should display exactly count of button as 3 and store the result in Output variable.
The result of the Get Object Count on Web Page action fetches the total count of buttons and stores in the {result} output variable as “3”, which can be utilized for display or other purposes.