Browse the docs

Screenshot the page

Saves the visible tab, or one element of it, as a PNG.

Screenshot the page

Details #

Captures what the tab shows (the tab must be the visible one in its window) and returns the file's path. With selector the picture is cropped to that element.

Parameters #

ParameterTypeRequiredValuesWhat it does
browserone ofsafari chrome front
intotextThe variable that receives the path.
sampleany value
selectortextCrop to this element.
tabany value
timeoutnumber, tab.

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Screenshot the chart
Do
  1. Screenshot “#chart”
Open in Switchboard to try it

Gotchas #

  • Only the part of the element that is on screen is captured.