get_attribute
Retrieve an attribute value (e.g., href, class) from a web element using CSS, XPath, or other locators.
Instructions
Get an attribute value from an element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Locator strategy | css |
| timeout | No | Wait timeout in seconds | |
| selector | Yes | CSS selector, XPath, or other locator value | |
| attribute | Yes | Attribute name e.g. href, value, class |