Attribute Value
Get and set element attribute values on a webpage. Use this action to extract data like URLs from href attributes, retrieve alt text, set custom values, or modify properties dynamically.
Inputs
☐ Prompt / Description (Required)
A clear and concise instruction describing what this step should do. This helps the AI debug and re-find the element if the webpage structure changes.
Good Example: "Retrieve the 'href' attribute from the first search result link."
Bad Example: "Find some attribute that looks useful and get it if possible."
Why it’s bad? Too vague, lacks specificity about what to retrieve.
☐ Element Selector (Required)
Define the target element using one of the following methods:
CSS Selector
Use standard CSS selectors to identify the element.
XPath
Use an XPath expression to precisely locate the element.
☐ Action Type (Required)
Get attribute value
Extracts the specified attribute from the selected element.
Set attribute value
Modifies the specified attribute with a new value.
☐ Attribute Name (Required)
The exact name of the attribute to be retrieved or modified (e.g., href
, alt
, class
, data-id
).
☐ Output Options (Optional)
Assign to variable
Store the retrieved attribute value for later use.
Insert to table
Save the extracted attribute value into a structured table.
Usage Example
Scenario 1: Retrieving a link's URL
Scenario 2: Setting a button's label
Notes
- The Prompt / Description is required to help AI debug and adjust the selector if needed.
- Ensure the attribute name is spelled correctly to avoid errors.
- When setting an attribute value, ensure that modifying it won’t break functionality on the webpage.