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