You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.NET 8 WPF App - UI Automation Broken - Same App .NET 6 - UI Automation works #8800
[severity:I'm unable to use this version]
We have a WPF application that tested daily via UI Automation tests. We can currently successfully test and record results when we compile our application as a .NET 6 application. However, when we compile the same application as a .NET 8 application the tests fail to detect some UI elements, which causes our tests to fail.
The UI tree in tools such as (UI Spy, Inspect, Accessibility Insights, etc.) we have discovered that some elements are not displayed in the tool's UI tree. For instance, when using the Inspect.exe tool, and we navigate through a wizard, page by page, only the first wizard page's child controls are displayed in Inspect's UI tree. This behavior is exhibited whether using Raw View, Control View, or Content View.
All tools that we have tried exhibit the same problem.
Activity
rchauhan18 commentedon Feb 13, 2024
This issue is similar as #8679
Here is the whole discussion regarding the cause for regression and workaround: #8715
WorkAround:
Set the
ItemsControlDoesNotSupportAutomationto true before WPF application Initialization.I have tried this workaround on the sample application mentioned in the issue and here is the UI automation tree using Accessibility Insights
We are closing this issue and will continue the discussion on the original issue.