screenshotB64
Takes a screenshot of the page and returns the result as a base64 encoded string. This is not the same as Element.screenshotB64, which takes a screenshot of a single element only.
Return
Screenshot data as a base64 encoded string.
Parameters
format
"jpeg" or "png" (defaults to "jpeg").
fullPage
When false (default), captures the current viewport. When true, captures the entire page.