Validate Element Visualization
The Validate element visualization step allows you to compare visual differences of a specific element between your baseline and your current test run. This functionality is provided as a service by Applitools, and requires integration with their Applitools Eyes app. For more information see Visual Validation (element, viewport, full-page)
This is a PRO feature This feature is only open to projects on our professional plan. To learn more about our professional plan, click here.
Adding a Validate element visualization step
→ To add a Validate element visualization step:
-
Hover over the :fa-caret-right: (arrow symbol) where you want to add the validation.
-
Click on the Toggle breakpoint button.
-
Click on the Run test button, to run the test until the breakpoint.
-
Hover over the :fa-caret-right: (arrow symbol) again and click on the “M” (Testim predefined steps).
-
Click on Validations.
-
Scroll down through the menu and select Validate element visualization.
-
In the AUT window, identify the relevant element for which you wish to validate an HTML attribute, and click on it to select it.
-
Click on the Toggle Breakpoint button after the validation step to remove the breakpoint.
The action options are displayed.
The Predefined steps menu opens.
The Validations menu expands.
Alternatively, you can use the search box at the top of the menu to search for Validate element visualization.
The “Element Visual Validation” step is added in the Editor, and a thumbnail of the selected element is shown in the step.
When you run your test, the baseline visualization will be compared to the test run. If the step fails due to a visual validation failure, double-click the failed visual validation step to open the details in Applitools Eyes.
You can also use keyboard shortcuts to add a Validate element visualization step. See Keyboard shortcuts.
Testim automatically creates a baseline in the first step run. It is recommended that in the Applitools UI you review, customize, and confirm that this baseline meets your expectations.