Skip to content

@saflib/playwright


Function: attachScreenshot() ​

attachScreenshot(page, options): Promise<void>>

Attach a screenshot to the test report. Use throughout tests to create a visual record of the user journey for easier review.

Parameters ​

ParameterType
pagePage
optionsScreenshotOptions

Returns ​

Promise<void>