Takes a screenshot and attaches it to the test report.
The Playwright page object
The name to identify the screenshot in the report
When I pw capture screenshot "error-state" for the report Copy
When I pw capture screenshot "error-state" for the report
Takes a screenshot and attaches it to the test report.