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 #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
browser | one of | safari chrome front | ||
into | text | The variable that receives the path. | ||
sample | any value | |||
selector | text | Crop to this element. | ||
tab | any value | |||
timeout | number | , tab. |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Screenshot the chart
Do
- Screenshot “#chart”
Gotchas #
Only the part of the element that is on screen is captured.