Mask
Values that can be provided to mask
selector:
stringRequired
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-classdiv: Selects alldivelementsdiv.my-class: Selects alldivelements with the classmy-classli:nth-child(2n): Selects all evenlielements[data-testid="hero-banner"]: Selects all elements with the attributedata-testidset tohero-bannerdiv > p: Selects allpelements that are direct children of adivelement
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 updated