Skip to main content
Element Handle screenshots & pdf methods for the Puppeteer driver.

screenshot

Take a screenshot of the element.
Returns base64 string by default. If options.encoding is “binary”, the SDK converts the base64 to a Buffer.
Upstream docs
options
PuppeteerScreenshotOptions
result
string
Return value
await element.screenshot();