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 — Dedicated Career & Placement Assistance.
Explore the Course →