Skip to content

[Windows] AutomationId does not work for ContentView, Layouts and controls that inherit them #4715

Description

@GeorgeDarakchiev

Description

Controls like Border or ContentView that have AutomationId are not visible in the AccessibilityTree.
Therefore they are not located by any UI Automation framework like Appium.

Steps to Reproduce

  1. Run the project from here: https://github.com/GeorgeDarakchiev/ReproProjects/tree/main/AutomationIdRepro/AutomationIdRepro
  2. Use any accessibility tool of your liking (like UI Verify) in order to inspect the tree.
  3. Notice that the Border and the ContentView from the project are not present in the tree.

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

All

Did you find any workaround?

As a workaround SemanticProperties.Description can be set, but this leads to issues on iOS.

Relevant log output

No response

Metadata

Metadata

Labels

area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterlegacy-area-a11yRelates to accessibilitypartnerIssue or Request from a partner teamplatform/windowss/triagedIssue has been reviewedt/a11yRelates to accessibilityt/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions