java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.TakeScreenshot

public class TakeScreenshot extends Object
Capture screenshots of the page or specific elements.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.serenitybdd.screenplay.playwright.interactions.ElementScreenshotBuilder
    ofElement(String selector)
    Take a screenshot of a specific element.
    static net.serenitybdd.screenplay.playwright.interactions.PageScreenshotBuilder
    Take a screenshot of the full page and save to the specified path.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TakeScreenshot

      public TakeScreenshot()
  • Method Details

    • ofPage

      public static net.serenitybdd.screenplay.playwright.interactions.PageScreenshotBuilder ofPage()
      Take a screenshot of the full page and save to the specified path.
    • ofElement

      public static net.serenitybdd.screenplay.playwright.interactions.ElementScreenshotBuilder ofElement(String selector)
      Take a screenshot of a specific element.