Class TakeScreenshot
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.TakeScreenshot
Capture screenshots of the page or specific elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.serenitybdd.screenplay.playwright.interactions.ElementScreenshotBuilderTake a screenshot of a specific element.static net.serenitybdd.screenplay.playwright.interactions.PageScreenshotBuilderofPage()Take a screenshot of the full page and save to the specified path.
-
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.
-