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.
An element in the 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.
An element already selected
Captures an element fetched earlier by a Get element action.
Element ID
The Get element action that captured the element to photograph.
One item from a selection of multiple elements
Captures an element from a list fetched by a Get elements action.
Elements list id
The Get elements action that captured the source list.
Enter the index of the list
The element's position in the list. The index starts at 0.
Capture the entire page
Captures the whole page, without pointing to an element.
Screenshot path
The folder on the machine where the image is saved.
Scheenshot name
The image file's name, without the extension. The extension picked in Image extension is added automatically.
Image extension
The generated file's format: .PNG or .JPEG. Default: .PNG.
Image quality in 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 An element in the 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.