๐จโ๐จ Screenshot
Taking a screenshot
To screenshot a page, just call withScreenshot()
:
The image comes in base64 and gets decoded in the package automatically. If you wish to retrieve it as base64, just call getScreenshot(false)
instead:
You can also set the quality of the screenshot by calling withScreenshot($quality)
, where $quality
is a number between 0
and 100
:
Setting the viewport
You may also change the viewport for the screenshot, and it can be done with setViewport()
:
Last updated