Setting AutomationProperties on a NavigationPane?

Navigation for WPF Forum

Posted 16 years ago by Kollen Glynn
Version: 3.5.0429
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
Avatar
Our testers are trying to automate our application and would like to know the labels of the navigation pane buttons but the automation name always displays an empty string "" and the automation id is always "Button" (using UI Spy).

Setting AutomationProperties.Name and AutomationProperties.AutomationId on the NavigationPane has no effect.

Are these known issues?

Kollen

Comments (4)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Kollen,

The Button objects you see are part of the template for the NavigationPane. When you look in UISpy, the "group" that contains them is the actual pane and that does have the Name property reflecting what title that pane has.

Does that help or would you like to tweak things more for you?


Actipro Software Support

Posted 16 years ago by Kollen Glynn
Avatar
It would be good if the button itself reflected the caption in its Name property like Outlook but your suggestion is fine.

After talking more with our testers it seems the specific problem they were trying to solve is how to verify that after clicking a button that the content is loaded? Visually the caption above the pane changes but nothing changes in the automation tree i.e. the Name property of the ExpanderBar group always says "Navigation Pane". Ideally this would change to reflect the caption of the selected button.
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Kollen,

We have updated our automation support for NavigationBar and associated controls to more closely mimic Outlook. There is now a text element in the UI automation tree whose name reflects the selected pane. In addition, the panes are now represented by a single button with their name appropriately set.

These changes will be available in the next maintenance release.


Actipro Software Support

Posted 16 years ago by Kollen Glynn
Avatar
Fantastic, thanks.
The latest build of this product (v24.1.3) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.