Help Centre › Building Processes
This article describes the RPA Browser functionality to monitor a page until a condition is met.
For a full list of available functions, please read BROWSER functions.
Description
The BROWSER Monitor page for condition function allows you to poll the page until a specific condition is met or the timeout is reached.
Setting it up
To use the BROWSER Monitor page for condition function, follow these instructions:
{{popups:rpas/add:action=browser-monitor}}
Once on a process map:
- Navigate to the process where you would like to add the BROWSER Monitor page for condition 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 Monitor page for condition option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Condition type | Yes | Select | Text | What to monitor for: Text, Element present, Element absent, URL contains, or Title contains. |
| Value to find | Yes | Text | – | The text, URL substring, or title substring to watch for. |
| Element selector | No | Text | – | Element selector for element-based condition types. |
| Selector type | No | Select | XPath | Method to locate the element. |
| Poll interval | Yes | Number | 2 | Seconds between each check (1–60). |
| Variable | No | Text | monitor | Variable name to store the boolean result. |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Boolean | True if the condition was met before timeout, false otherwise. |
Errors
| Error | Description |
|---|---|
| Browser not open | No browser session is active. |
| Timeout | The condition was not met within the timeout period. |
Tips
- Uses the state timeout as the deadline. Adjust the timeout in the action settings if you need a longer monitoring window.
- Use a shorter poll interval for time-sensitive conditions and a longer one to reduce resource usage.