Help Centre › Building Processes
This article describes the RPA Browser functionality to screenshot an element.
For a full list of available functions, please read BROWSER functions.
Description
The BROWSER Screenshot an element function allows you to screenshot an element.
Setting it up
To use the BROWSER Screenshot an element function, follow these instructions:
{{popups:rpas/add:action=browser-screenshot}}
Once on a process map:
- Navigate to the process where you would like to add the BROWSER Screenshot an element function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the BROWSER Screenshot an element option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Element selector | Yes | Text | – | Selector to identify the element to screenshot. |
| Selector type | Yes | Select | XPath | Method to locate the element. |
| File path | Yes | Text | – | Full path to save the screenshot image. |
| Visible only | No | Boolean | Off | Only capture visible elements. |
Output variables
This action does not produce any output variables.
Errors
| Error | Description |
|---|---|
| Element not found | The element could not be found. |
| File path invalid | The output file path is invalid. |
Tips
- Use a .png extension for the output file.