For capturing screenshots use Page.screenshot().
Use it to automate anything in the browser, from taking screenshots and generating PDFs to navigating through and testing complex UIs and analysing performance. Get started bolt Page interactions Qu...