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.

visible area only
boolean
default: false

Search for the element in the current visible area only. Improves performance and accuracy for long pages. Does not affect vision descriptions, which always use the visible area only.

Was this page helpful?