Help Centre › Building Processes
This article describes the RPA Browser functionality to set element attribute.
For a full list of available functions, please read BROWSER functions.
Description
The BROWSER Set element attribute function allows you to set element attribute.
Setting it up
To use the BROWSER Set element attribute function, follow these instructions:
{{popups:rpas/add:action=browser-set-attr}}
Once on a process map:
- Navigate to the process where you would like to add the BROWSER Set element attribute 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 Set element attribute option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Element selector | Yes | Text | – | Selector to identify the element. |
| Selector type | Yes | Select | XPath | Method to locate the element. |
| Attribute | Yes | Text | – | Name of the attribute to set. |
| Value | Yes | Text | – | The value to assign to the attribute. |
| Scroll into view | No | Boolean | Off | Scroll to the element first. |
| Visible only | No | Boolean | Off | Only consider visible elements. |
Output variables
This action does not produce any output variables.
Errors
| Error | Description |
|---|---|
| Element not found | The element could not be found. |
Tips
- Use this to modify hidden fields or set custom attributes before submitting a form.