This step allows you to compare screenshots of a page before and after a change.

Inputs

description
string

Description of the element that you want to screenshot. Refer to the Locating elements guide for more information.

Configs

threshold
number
default:
10

Percentage of total pixels that can be different before the step fails.

disable stability checks
boolean
default:
false

Do not wait for the element to be visible, stable and actionable before interacting. Useful for elements that are constantly animating or partially obscured.

use css selector
boolean
default:
false

Treat the element description as a CSS selector. This is not recommended for maintainability reasons but can be useful for dynamic pages.

disable caching
boolean
default:
false

Disable caching for this target. Useful for elements that should always be located dynamically, such as table rows, search results, or graph nodes that may be re-ordered.

act within iframe
string

Specify an exact URL or a regex to match the URL of the iframe in which the element is located. The provided matcher must match exactly one iframe element on the page. To provide a custom regex, use the /<regex-here>/ format.

Was this page helpful?