IUIAutomationElement::CurrentAutomationId Property
Retrieves the Microsoft UI Automation identifier of the element.
Syntax
HRESULT IUIAutomationElement::get_CurrentAutomationId(BSTR *retVal);
Parameters
- retVal
The address of a BSTR that receives the identifier.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The identifier is unique among sibling elements in a container, and is the same in all instances of the application.
See Also
UIA_AutomationIdPropertyId, IUIAutomationElement, IUIAutomationElement::CachedAutomationId