get_attribute
Retrieve a specific attribute or property from a UI element using its ID. Returns the attribute value or empty string if absent, helping identify element states like enabled, offscreen, or control type.
Instructions
Get an attribute or property of a UI element. Common attributes: Name, AutomationId, ClassName, IsEnabled, IsOffscreen, ControlType, Value.Value. Returns an empty string when the attribute is absent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attribute | Yes | Attribute name, e.g. "Name", "IsEnabled", "ControlType" | |
| elementId | Yes | Element ID returned by find_element |