Definition and Usage
The Set web element attribute command allows you to set or modify attributes of target elements during web automation. You can use it for tasks like filling forms, toggling states, or adjusting styles. The command operates on a specified web page and element, updating the attribute you specify with the desired value.
Parameter Values
Input Parameters
Parameter Name | Description | Possible Values | Required | Options / Notes |
Web page | Select a variable that contains the web page to work with. | Any valid web page variable | Yes | Ensure the page is open and fully loaded before execution. |
Element | Select or capture an element to operate on. | Any valid element | Yes | Element must exist in the webpage; dynamic elements may need waits. |
Attribute name | Specify the attribute of the element. | value, src, href, class, style, etc. | Yes | Must be a valid attribute of the element; case-sensitive. |
Attribute value | Set value to the target attribute. | Any text or numerical value | Yes | Ensure the value type matches the attribute requirement. |
Advanced Settings
Parameter Name | Description | Possible Values | Required | Options / Notes |
Wait after execution (s) | Wait time after the action is executed. | Any positive number | No | Helps ensure the page updates before next command. |
Element timeout (s) | Wait time for element to appear (seconds). | Any positive number | No | Use when element may load dynamically. |
Error Handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will stop execution. |
Retry command | The action retries the command if an error occurs. |
Ignore error & continue | The action ignores the error and continues workflow execution. |
Variables Produced
This action doesn't produce any variables.
Using Variables in Conditions
You can use variables for Web page, Element, Attribute name, and Attribute value. Insert them directly in these fields to dynamically set or modify attributes based on workflow data.
Notes
Ensure the target web page is open and fully loaded before executing the command.
Attributes must exist on the element; invalid names may cause errors.
Dynamic elements may require Element timeout (s) to appear before modification.
Use Wait after execution (s) to allow page changes to complete before next step.
Attribute values should match expected type (e.g., numeric for
value
, text forclass
).