Class CompareScreenshot.ScreenshotComparison
java.lang.Object
net.serenitybdd.screenplay.playwright.assertions.visual.CompareScreenshot.ScreenshotComparison
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,net.serenitybdd.screenplay.Performable
- Enclosing class:
- CompareScreenshot
public static class CompareScreenshot.ScreenshotComparison
extends Object
implements net.serenitybdd.screenplay.Performable
The actual screenshot comparison implementation.
-
Method Summary
Modifier and TypeMethodDescription<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T actor) Force update of the baseline image instead of comparing.withThreshold(double threshold) Set the allowed difference threshold.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Performable
then
-
Method Details
-
withThreshold
Set the allowed difference threshold.- Parameters:
threshold- Value between 0.0 (exact match) and 1.0 (any difference allowed)
-
updatingBaseline
Force update of the baseline image instead of comparing. -
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor) - Specified by:
performAsin interfacenet.serenitybdd.screenplay.Performable
-