Mask
Values that can be provided to mask
- selector:
string
- Required
- CSS selector for the element to mask
- Allows you to select an element on the page by its CSS selector. This allows you to specify an area of the image that should be ignored when comparing for differences.
- Examples:
#my-id
: Selects the element with the idmy-id
.my-class
: Selects all elements with the classmy-class
div
: Selects alldiv
elementsdiv.my-class
: Selects alldiv
elements with the classmy-class
li:nth-child(2n)
: Selects all evenli
elements[data-testid="hero-banner"]
: Selects all elements with the attributedata-testid
set tohero-banner
div > p
: Selects allp
elements that are direct children of adiv
element
This type
Mask
is used to define areas of the image that should be ignored when comparing for differences. It allow you to specify an area of the image to be ignored by providing a CSS selector that targets the specific element on the page.Last modified 8mo ago