get_element_attribute
Retrieve a specific attribute or property (e.g., href, src, value, class) from an element via CSS, XPath, or other selectors. Returns the exact value for assertions and data extraction.
Instructions
Retrieve specific attribute or property (e.g. href, src, value, class) from an element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Selector of the element | |
| strategy | No | Strategy to find element (css, xpath, id, name, tag, class, text, partialText). Default: css | css |
| timeoutMs | No | Wait timeout in milliseconds (default: 10000) | |
| attributeName | Yes | Attribute or property name (e.g. "href", "value", "class", "src", "innerText") |