Help Centre › Building Processes
This article describes the RPA Browser functionality to click on a specified element within a browser.
For a full list of available functions, please read BROWSER functions.
Description
The BROWSER click function allows you to simulate a mouse click on a specified element within the browser, similar to clicking on a link or button in a standard web browser.
Setting it up
To use the BROWSER click function, follow these instructions:
{{popups:rpas/add:action=browser-click}}
Once on a process map:
- Navigate to the process where you would like to add the BROWSER click 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 click option.
- Click "Add" once you are done
Inputs
- Element: The selector used to identify the element to be clicked. This can be an XPath, CSS selector, or other supported selector types.
- Scroll into view: Select to bring the element into view before clicking on the element
- Visible only: Select to only click on visible elements
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Element selector | Yes | Text | – | XPath, CSS selector, ID, or other selector to identify the element. |
| Selector type | Yes | Select | XPath | Method used to locate the element: XPath, CSS, ID, Name, Text, Class. |
| Force click | No | Boolean | Off | Force click even if the element is obscured. |
| Scroll into view | No | Boolean | Off | Scroll the page to bring the element into view before clicking. |
| Visible only | No | Boolean | Off | Only click if the element is visible. |
Output variables
This action does not produce any output variables.
Errors
| Error | Description |
|---|---|
| Element not found | The specified element could not be found on the page. |
| Element not clickable | The element exists but cannot be clicked. |
| Timeout | The element did not appear within the timeout period. |
Tips
- Use CSS selectors for better performance than XPath.
- Enable 'Scroll into view' for elements below the fold.