Click here to Skip to main content
15,888,241 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hello,

I am trying to implement an automated test for a WPF application using UI Automation framework.

The problem is with the dynamic loaded controls. For example, the contents of a tab are not updated and UI automation can't find them. When you change the tab you selected, the controls (which are all default control, no custom control) that are in the new selected tab are not detected. VisualUIAVerify, UISpy and Inspect can't find them either.

What I have tried:

I tried the solutions described in these two links:

GenericAutomationPeer – Helping the Coded UI Framework Find Your Custom Controls: This one didn't work, UI Automation wasn't able to get the control even from the first selected tab

and:

TabControl controls are missing for UI Automation: Which seems to be working on .NET 3.5 and under..

I found also many posts describing the same problem but left without an answer.

Thanks in advance!
Posted
Updated 8-Feb-17 2:29am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900