DragPattern/DragDropPattern elements requires Name

Text

Elements that support Drag/Drop should have a valid 'Name' set

Type

Error

Description

The element supports either IUIAutomationDragPattern or IUIAutomationDropTargetPattern, but does not have a valid Name set.

This issue causes problems for people who rely on a screen-reader. The user will not be able to tell what this object is since the screen read will not read out a valid name to distinguish what this element is when dragging.

Possible causes

  • The element, or its parent, has an incorrectly assigned name or label.
  • A developer is not aware that screen readers read names and control types.

IAccessible::get_accName

Name Property

UIA_NamePropertyId

IUIAutomationElement::CurrentName