UnCodemy ← Back to Playwright Course
Playwright Interview Q&A · #13

How do you capture a screenshot in Playwright?

Playwright allows capturing screenshots using the screenshot() method. It can capture the entire page or a specific element.

Want to master Playwright hands-on?

Join Uncodemy's Playwright Automation Testing Course in Noida — 100% placement assistance.

Explore the Course →