Forum Discussion
RickAlmeida
10 years agoModerator
Please forgive me! As it turns out, we already support this. We've had the UI Automation plugin in TestComplete for some time, but I don't think anyone has ever tried to apply it to a WPF application. To enable UIA support in TestComplete:
1. Go to File->Current Project Properties->Open Applications->UI Automation
2. Enable the asterisk (*) item in the list of accepted windows.
3. Go to File->Current Project Properties->Open Applications->General
4. Move the NativeUIAObject to the top of the priority list.
TestComplete will now see WPF objects in this way: Sys.Process("WpfApplication1.vshost").UIAObject("WindowNameUIA").UIAObject("button3AID")
Where WindowNameUI is the AutomationProperties.Name of the main form and button3AID is the AutomationProperties.AutomationId of a button on that form.
More information is available here: http://support.smartbear.com/viewarticle/55786/
Thanks,
Rick
SmartBear Customer Care
Related Content
- 3 months agoD0UG
- 5 years agolingling_chiang
- 5 years agoautomTest