Screenshot
Screenshot
Takes a screenshot of one particular element on the page and saves the image to a folder on the machine the robot is running on. It returns the file's full path.
The image file is saved on the machine the robot runs on. Make sure the destination folder exists before the action runs.
Options
Select the action
How the captured element is identified.
By browser
Captures the element using a CSS selector.
Browser or page ID
The browser opening action where the capture happens.
Element selector
The CSS selector of the element to capture, div#content for example.
By element
Captures an element fetched earlier by a Get element action.
Element ID
The Get element action that captured the element to photograph.
By element list
Captures an element from a list fetched by a Get elements action.
Element list ID
The Get elements action that captured the source list.
The list index
The element's position in the list. The index starts at 0.
Screenshot path
The folder on the machine where the image is saved.
Screenshot name
The image file's name, without the extension. Left empty, a random name is generated.
Image extension
The generated file's format: PNG or JPEG. Default: jpeg.
Image quality as a percentage
The image's quality, from 0 to 100. JPEG only. Default: 100.
Returns
Javascript code
actions["action-id"].filePath // the full path of the image file written to disk (Text)
Field selection
- filePath — the full path of the image file written to disk (Text)
Rules and conditions
- Select the action has to be set before the other fields.
- In By browser mode, Browser or page ID and Element selector are both required.
- Screenshot path has to be a folder that exists on the machine the robot runs on.
- Image quality as a percentage is ignored when the extension is PNG.
- If the element is not found on the page, the action ends in an error.