BROWSER Wait for network request function

Wait for a network request matching a URL pattern to complete.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to wait for a network request matching a URL pattern.

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


Description

The BROWSER Wait for network request function pauses execution until a network request matching the specified regex URL pattern completes, or the timeout is reached. This is useful for waiting on API calls or resource loads before proceeding with the next step.


Setting it up

To use the BROWSER Wait for network request function, follow these instructions:

{{popups:rpas/add:action=browser-wait-for-request}}

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
URL patternYesTextRegex pattern to match against request URLs.
VariableNoTextmatched_requestVariable name to store the matched request.

Output variables

VariableTypeDescription
{matched_request}ObjectObject with url, method, status, and timestamp of the matched request (null if timed out).

Errors

ErrorDescription
Browser not openNo browser session is active.
TimeoutNo matching request was detected within the timeout period.

Tips

  • Use this instead of fixed waits to make your automation more reliable and faster.
  • Place this action before the step that triggers the request, or use it alongside Capture network requests.
  • Check if the variable is null to handle timeout cases gracefully.

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.