mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 04:39:31 +00:00
Bug 1886371 part 5: Implement the UIA AutomationId property. r=nlapre
We need this for our tests so they can find elements they're testing. Differential Revision: https://phabricator.services.mozilla.com/D205183
This commit is contained in:
parent
12770de85d
commit
a93f20a1ad
@ -238,6 +238,17 @@ uiaRawElmProvider::GetPropertyValue(PROPERTYID aPropertyId,
|
||||
break;
|
||||
}
|
||||
|
||||
case UIA_AutomationIdPropertyId: {
|
||||
nsAutoString id;
|
||||
acc->DOMNodeID(id);
|
||||
if (!id.IsEmpty()) {
|
||||
aPropertyValue->vt = VT_BSTR;
|
||||
aPropertyValue->bstrVal = ::SysAllocString(id.get());
|
||||
return S_OK;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case UIA_IsControlElementPropertyId:
|
||||
case UIA_IsContentElementPropertyId:
|
||||
aPropertyValue->vt = VT_BOOL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user