Modify Web Element Attributes or Properties
Obtain a web element with Get Web Element, Get Similar Web Elements, or Get Related Web Elements. Then modify its properties or attributes.
Method 1
- Assign a value through the element's properties to modify the JavaScript HTMLElement object.
- Assign a value through the element's attributes to modify the HTML attribute.
Example
Use Run Python Code to modify a web input. properties.value changes its current displayed value, while attributes.value changes the value in the HTML attribute.
web_element.properties.value = "properties.value"
web_element.attributes.value = "attributes.value"
You can modify other properties and attributes in the same way, including src, class, and style.
Method 2
Modify the element with Execute JavaScript.
Example
Hide an element:
tip
Requires browser extension version 2.4.0 or later.
Requires Runavelo 7.7.0 or later.