CodedUI with Dockingwindows

Docking/MDI for WPF Forum

Posted 6 years ago by Marcel Goeller
Version: 13.2.0591
Avatar

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 6 years ago]

Comments (1)

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

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 (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.