This test examines the ARIA properties for searchbox activedescendant value changes.

then role:searchbox, aria-activedescendant: bob

Manual Mode Enabled

StepTypeElement IDAssertions
step 1eventtestSend event focus to the element with ID test
step 2attributetestSet attribute aria-activedescendant on the element with ID test to the value "bob"
step 3testtest
API NameAssertions
ATKpropertyroleisROLE_ENTRY
propertystatescontainsSTATE_SINGLE_LINE
propertyinterfacescontainsEditableText
propertystatesdoesNotContainSTATE_FOCUSED
propertystatescontainsSTATE_FOCUSABLE
AXAPIpropertyAXRoleisAXTextField
propertyAXSubroleisAXSearchField
propertyAXRoleDescriptionissearch text field
propertyAXFocusedisfalse
resultAXUIElementIsAttributeSettable(AXFocused)istrue
IAccessible2propertyobjectAttributescontainstext-input-type:search
eventtypeisEVENT_OBJECT_FOCUS
MSAApropertyroleisROLE_SYSTEM_TEXT
propertystatesdoesNotContainSTATE_SYSTEM_FOCUSED
propertystatescontainsSTATE_SYSTEM_FOCUSABLE
UIApropertyControlTypeisEdit
propertyLocalizedControlTypeissearch box
propertyIUIAutomationElement.UIA_IsKeyboardFocusablePropertyIdistrue
propertyIUIAutomationElement.UIA_HasKeyboardFocusPropertyIdisfalse
step 4testbob
API NameAssertions
ATKpropertystatescontainsSTATE_FOCUSED
propertystatescontainsSTATE_FOCUSABLE
eventtypeisobject:state-changed:focused
eventdetail1is1
AXAPIpropertyAXFocusedistrue
resultAXUIElementIsAttributeSettable(AXFocused)istrue
eventtypeisAXFocusedUIElementChanged
MSAApropertystatescontainsSTATE_SYSTEM_FOCUSED
propertystatescontainsSTATE_SYSTEM_FOCUSABLE
eventtypeisEVENT_OBJECT_FOCUS
UIApropertyIUIAutomationElement.UIA_IsKeyboardFocusablePropertyIdistrue
propertyIUIAutomationElement.UIA_HasKeyboardFocusPropertyIdistrue
eventtypeisUIA_AutomationFocusChangedEventId