CodedUI with Dockingwindows

Docking/MDI for WPF Forum

Posted 9 years ago by Marcel Goeller
Version: 13.2.0591

We have the problem with the docking windows in Actipro, that the AutomationID is always a new generated one after restart.

So it's not possible to use CodedUI for automated UI tests, because here we need a constant id.


Do you have a suggestion how this problem can be handled, or how to use CodedUI with the Docking Windows?

[Modified 9 years ago]

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Marcel,

If your containers, etc. are set up in XAML, I believe you could set the AutomationID in XAML for each container.  Give each container you want to test a specific ID value.

You could probably also do the same thing via code-behind by iterating the DockSite's structure and setting the AutomationProperties.AutomationId attached property on each container.

Actipro Software Support

The latest build of this product (v22.1.3) was released 22 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.