BROWSER Capture network requests function

Start capturing network requests matching a URL pattern.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to capture network requests matching a URL pattern.

For a full list of available functions, please read BROWSER functions.


Description

The BROWSER Capture network requests function starts intercepting network requests and responses matching a regex URL pattern. It captures both fetch and XHR calls, storing them for later retrieval with Get captured requests. This is useful for monitoring API calls made by a web application during automation.


Setting it up

To use the BROWSER Capture network requests function, follow these instructions:

{{popups:rpas/add:action=browser-capture-requests}}

Once on a process map:

  1. Navigate to the process where you would like to add the BROWSER Capture network requests 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 network requests option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
URL patternYesTextRegex pattern to match request URLs (e.g. api/v1/users or .*\.json$).
VariableNoTextcaptured_requestsVariable name to store captured requests.

Output variables

VariableTypeDescription
{captured_requests}ListList of captured request objects (initially empty, populated as requests occur).

Errors

ErrorDescription
Browser not openNo browser session is active.
Invalid patternThe regex pattern is invalid.

Tips

  • Start capturing before the action that triggers the requests you want to monitor.
  • Use Get captured requests to retrieve the collected data after the relevant actions complete.
  • Use specific patterns to avoid capturing unrelated traffic.

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.