BROWSER Capture browser state function

The BROWSER Capture browser state function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the BROWSER Capture browser state function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the BROWSER Capture browser state option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Screenshot pathNoTextFile path to save a screenshot. If omitted, no screenshot is taken.
VariableNoTextcaptureVariable name to store the captured state.

Output variables

VariableTypeDescription
VariableDictionaryA dictionary with keys: url (string), title (string), cookies (list), form_values (dictionary), screenshot (string or null).

Errors

ErrorDescription
Browser not openNo browser session is active.
Screenshot failedThe 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.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.