get_attribute
Retrieve the value of a specified attribute from the first web page element that matches a given CSS or XPath selector.
Instructions
Return the value of an attribute on the first element matching the selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS or XPath selector. | |
| attribute | Yes | Attribute name, e.g. href, src, value, data-id. |