BROWSER Clear response mocks function

Remove all active response mocks and restore original behaviour.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to clear all active response mocks.

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


Description

The BROWSER Clear response mocks function removes all active response mocks previously set with Mock network response, restoring the original fetch and XHR behaviour so all requests go to their real endpoints.


Setting it up

To use the BROWSER Clear response mocks function, follow these instructions:

{{popups:rpas/add:action=browser-clear-mocks}}

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
This action does not require any input parameters.

Output variables

This action does not produce output variables.


Errors

ErrorDescription
Browser not openNo browser session is active.

Tips

  • Always clear mocks when you are done testing to avoid unexpected behaviour in subsequent steps.

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.