Setting the viewport on a Playwright headless browser

Chris Biscardi
InstructorChris Biscardi

Share this video with your friends

Send Tweet

When taking screenshots, it's important that the browser is big enough to show all of the content in the DOM that we want to screenshot. We can do this by setting the viewport.