Automation - No elements in TabItem Group in .NET8

Ribbon for WPF Forum

The latest build of this product (v24.1.3) was released 1 month ago, which was before this thread was created.
Posted 17 days ago by Vincent Gouge
Version: 24.1.3
Platform: .NET 6.0
Environment: Windows 10 (64-bit)
Avatar

Hello,

After migrating our application to .NET8, we noticed that some UI automation tests failed due to elements that could not be localized. Inspecting the UI tree showed us that Groups under Ribbon TabItem were empty. I am not able to include screenshots to this thread, but essentially, before the migration, Ribbon TabItem Group could be expanded the UI tree, showing all elements contained within, including Automation Ids. However, in .NET8, groups now appear as empty elements that cannot be expanded and no info is available. It seems to be related to this previous thread, pointing out that some adjustments are needed regarding Microsoft's UI Automation Peers. Does version 24.1.3 supposed to include fixes related to this?

Thank you and have a nice day,

Vincent.

Comments (5)

Posted 17 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Vincent,

Yes, the changes Microsoft made in .NET 8 did cause some automation peers to change behavior. 

v24.1.3 did contain the updates mentioned in the other thread.  Those along with other recent updates should have things working in .NET 8.


Actipro Software Support

Posted 14 days ago by Vincent Gouge
Avatar

Since the other thread seems to focus on collapsed Group, is it possible that v24.1.3 is missing some changes that would allow uncollapsed Group to behave properly? My tests were performed using v24.1.3, and each Group contained in a TabItem are empty.

Posted 14 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Just so we are making sure we are looking at the same thing, can you walk us through step by step in one of our samples to tell us where you see the issue occurring?

For instance, when you run our classic Ribbon product demo, do you mean you don't see anything under the collapsed "Editing" group there while closed, but are expecting to see child controls in the UIA peer tree?  I don't really see that behaving differently from older verisons.

Also, which app are you using to examine the UIA peer tree?  And are you looking at the Raw, Control, or Content UIA tree?


Actipro Software Support

Posted 12 days ago by Vincent Gouge
Avatar

When using the Ribbon product demo, the "Editing" group is indeed behaving exactly like the element I am refering in my app (group is empty). However, in my app, the group is not a collapsable item. The whole group is simply composed of one button, this is why I would expect to see child controls in the UI Automation peer tree.

The app I am using is VisualUIAVerifyNative from Windows Kits.

Posted 12 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Vincent,

The "Editing" group I had previously mentioned has no UIA peer children since it's collapsed at the time.  I tried finding something similar to what you describe.  The "Insert / Tables" group has a single button in it.  But when I use VisualUIVerify on it, I do see the button's peer as a child of the group's peer.  Can you tell us how to see the scenario you see within one of our samples?  Thanks!


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.