Help Centre › Building Processes
This article describes the RPA Browser functionality to capture the current browser state.
For a full list of available functions, please read BROWSER functions.
Description
The BROWSER Capture browser state function allows you to capture the current browser state including URL, title, cookies, form values, and an optional screenshot.
Setting it up
To use the BROWSER Capture browser state function, follow these instructions:
{{popups:rpas/add:action=browser-capture-state}}
Once on a process map:
- Navigate to the process where you would like to add the BROWSER Capture browser state 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 Capture browser state option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Screenshot path | No | Text | – | File path to save a screenshot. If omitted, no screenshot is taken. |
| Variable | No | Text | capture | Variable name to store the captured state. |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Dictionary | A dictionary with keys: url (string), title (string), cookies (list), form_values (dictionary), screenshot (string or null). |
Errors
| Error | Description |
|---|---|
| Browser not open | No browser session is active. |
| Screenshot failed | The screenshot could not be saved to the specified path. |
Tips
- Use this function to save the browser state before performing complex operations, so you can verify or restore it later.
- Omit the screenshot path if you only need the URL, title, cookies, and form values.