get_attribute
Get attribute values like href, class, or value from any element. Provide a CSS, XPath, or other locator and the attribute name to return its current value.
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 |