Get Attribute
element_get_attributeRetrieve an attribute value from a web element using a CSS selector or XPath. Enables data extraction during browser automation.
Instructions
Get an attribute value from an element
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector or XPath to find the element. Bare selectors are CSS; use text:... for text matching or explicit tag:/css:/xpath:/@attr locators. | |
| attribute | Yes | Attribute name to retrieve |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||