Simple verifications of data can be easily completed by clicking the Flag icon in Architect and then clicking on the element to verify. Verifying large elements that contain multiple elements should be avoided. Each verification should be a specific element. Selecting a div containing multiple elements limits the self healing properties of the test.
See User Guide: Best Practices Using Verifications.
Advanced Attribute Validation
Advanced verifications are used for verifying dynamic data and are leveraged in combination with Operators.
- Click the white circle to the left of the Verify Action.
- The left panel will open to the ADV Validation tab where you can specify the Attributes to validate in the Action. The Attribute Validation tab allows a user to verify specific attributes of an element, most commonly used is text, value, and SRC, though all attributes are accessible. Combined with Operators like 'contains', 'greater than' and 'equals step value', specific verifications can be added easily with no code required.
- Select the Attribute and Operator as well as the appropriate value for your verification.
- Click Save.
- The left panel will close and your Verify Action will be updated to match your selections.
Multiple Validations on a Single Verification
It is possible to save multiple validations on a single Verify Action with the Multiple option using "OR" and "AND" operators.
- If OR is used: Architect will check for the first true condition. Once verified, no further check will be performed and will immediately move on the next step.
- If AND is used: All existing conditions will be checked.
Custom Attribute Validation
Visual Check Validation
The Visual Check button allows elements to be validated visually. This is limited to specific elements/images and not sections of pages that are comprised of multiple elements.
See User Guide: Visual Verification: Element Verifications
The ADV Selector tab in the left panel for an Action contains two options for greater precision in your tests by utilizing Selectors.
See User Guide: Customizing Tests with Selectors.
- Click the arrow icons to walk the DOM from the current element to select any element regardless of size or other overlapping elements.
- In the text box, enter the ID, Query Selector, or CSS Class of your desired element. Click the Search button to verify.
- ML Selector: Machine learning based. Selected by default. Overriding inhibits the ability to self-heal by learning your site.
- Specify Selector: Identify another selector to locate the element. Enter XPath from browser or choose from a list via the Snippets button.
- JS Override Selector: Use JQuery to write a custom selector locating the element and bypassing the ML selector.