verifyElementText
Last updated
Was this helpful?
Last updated
Was this helpful?
The verifyElementText action in the Avo Assure is found under the @Custom Element. It instructs the Avo Assure Client to verify whether the text of an element matches to the given input or not and save the result (True/False) in the given output variable.
Input: <ObjectType>;<VisibleText(optional)>;<Index>;<value>;<abs(optional)>
Note: The user needs to provide the type of object, its visible text of the element (if needed), its element index, the value to be verified with element and the abs.
Output: <Dynamic Variable>;<Dynamic Variable>(optional)
Usecase/Example:
When a user is verifying the functionality of the login page for an e-commerce application. The user needs to ensure that the text on the “Login” button matches the expected value: “Log In”. [PJ1] In Avo Assure using the “Verify Element Text” action, the user wants to verify the Login button element and checks if its displayed text matches the expected value.
button;;0;Log In
Note: To skip an optional input value, use an extra semicolon (;).
The verifyElementText action needs to verify the button name “Log In” is same as given in input value and store the result in output variable as True.
The result of the verifyElementText action verifies the button and stores in the {result} output variable as “True”, which can be utilized for display or other purposes