You can take screenshots of the entire browser window with the
Take Screenshot action.
And can also take screenshots of a certain element with the
Snipping Tool action.
You can also perform pixel-by-pixel screenshot comparison.
In order to perform a screenshot comparison, you need to use one of these two options:
- Page Matches Screenshot
- Element Matches Screenshot
You can find those options in the
Add Assertion and
Start If Statement actions.
You must provide a
Baseline Screenshot URL for those options.
How to obtain a
Baseline Screenshot URL:
- Add a
Take Screenshotor a
Snipping Toolaction in your test.
- Execute the test.
- Get the URL of the screenshot from the Results section.
Screenshot Tolerance (%) from the
Advanced Settings can be configured to set the accuracy.
For example, if you select 5%, your assertion will fail if the difference between the screenshots is more than 5%.
If the screenshots have different sizes, the larger one will be automatically resized to match the smaller one.