verifyExists
Last updated
Was this helpful?
Last updated
Was this helpful?
The verifyExists action in the Avo Assure is found under the @Custom Element. It instructs the Avo Assure Client to check whether the given element exists on the webpage or not and save the result (True/False) in the given output variable.
Syntax:
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 element index, and the abs.
Output: <Dynamic Variable>;<Dynamic Variable>(optional)
When a user is verifying the presence of the “Log In” button on the homepage of an e-commerce website. Before automating the login functionality, In Avo Assure the user uses the “Verify Exists” action to confirm whether the “Log In” button is present on the webpage. If the button exists, the test proceeds to interact with it.
button;;0;Log In
The verifyExists action should verify the Login button existed or not, as button existed it will store True in Output variable.
The result of the verifyExists action verifies the Log In button exists on the webpage and stores in the {result} output variable as “True”, which can be utilized for display or other purposes.