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 Details

    • withThreshold

      public CompareScreenshot.ScreenshotComparison withThreshold(double threshold)
      Set the allowed difference threshold.
      Parameters:
      threshold - Value between 0.0 (exact match) and 1.0 (any difference allowed)
    • updatingBaseline

      public CompareScreenshot.ScreenshotComparison updatingBaseline()
      Force update of the baseline image instead of comparing.
    • performAs

      public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor)
      Specified by:
      performAs in interface net.serenitybdd.screenplay.Performable