You can easily take a screenshot and save it using the following command.
await page.screenshot({ path: 'screenshot.png' });
For more complex screenshot operations check out the Playwright Screenshots documentation.
You can easily take a screenshot and save it using the following command.
await page.screenshot({ path: 'screenshot.png' });
For more complex screenshot operations check out the Playwright Screenshots documentation.