Take a screenshot of a specific element on the page, great for automating documentation steps of your product.
element
option for screenshots. See Screenshot options for all available screenshot options.
viewport
option in combination with the overlay
option can be used.
viewport
option will make sure the screenshot is taken with that viewport, afterwards that viewport is used as
size to add the background
to. We are setting margin
to 0
as otherwise the default value will increase the viewport of the background.