Playwright Cucumber TS Steps
    Preparing search index...

    Function captureScreenshotForReport

    • Takes a screenshot and attaches it to the test report.

      Parameters

      • page: any

        The Playwright page object

      • name: string

        The name to identify the screenshot in the report

      Returns Promise<void>

      When I pw capture screenshot "error-state" for the report