Micro Focus QTP (UFT) Forums

Full Version: Does QTP/UFT support "Microsoft.Windows.Control" (one type of wpf control)?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Folks,
I have a challenge automating WPF Application in which they used new type of Wpf Data GridControl i.e "Microsoft.Windows.Control". We cannot access all the properties of this control(RowCount,GetCelldata). Can Anyone get this issue and provide me details of any patch that can resolve this issue?
Hi

Use WPF add-in for this Grid. Normal if you do not use WPF add-in, QTP will see WPF screens as SwfObject or winobjects . But with the WPF add-in you can get them as wpfwindow as well.

Please use this below link to get better idea.
I faced similar issue for .Net window app automation. At that time i used add in extensibility and my issue got resolved.

http://h30499.www3.hp.com/t5/Unified-Fun...-p/2406185

Please use this below link to get better idea.
I faced similar issue for .Net window app automation. At that time i used add in extensibility and my issue got resolved.

http://h30499.www3.hp.com/t5/Unified-Fun...-p/2406185
Thanks for your reply Maheep.

I am using WPF Add-In. I am able to recognise Wpf Objects. Problem is with different types of wpf controls i.e. "System.Windows.Control" & "Microsoft.Windows.Control". QTP/UFT can retreive properties like "RowCount,GetCellData,Click Cell" etc. on former control but throwing "Object reference not set to instance of an object" exception for the latter control.

So the problem is zeroed on QTP compatibilty of "Microsoft.Windows.Control"

Any help in this direction/context would be appreciated.