Help Centre › Building 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:
- Navigate to the process where you would like to add the BROWSER Clear response mocks 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 Clear response mocks option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| This action does not require any input parameters. | ||||
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Browser not open | No browser session is active. |
Tips
- Always clear mocks when you are done testing to avoid unexpected behaviour in subsequent steps.