Micro Focus QTP (UFT) Forums
WPF Object problem - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: General (https://www.learnqtp.com/forums/Forum-General)
+--- Forum: Posting Guidelines/Disclaimer (https://www.learnqtp.com/forums/Forum-Posting-Guidelines-Disclaimer)
+--- Thread: WPF Object problem (/Thread-WPF-Object-problem)



WPF Object problem - sowmya - 11-24-2011

Hi,
If i record qtp11 generate the statement as
SwfWindow("").SwfObject("").WpfWindow("").WpfButton("Ok").Click

but if i write the same code with DP, its giving an error saying that WpfButton object cannot be identified,check for swfobject parent object property.

Please give me the solution


RE: WPF Object problem - Ankesh - 11-24-2011

hi sowmya,

Can u plz spy the object and paste the screenshot of it?

Regards,
Ankesh


RE: WPF Object problem - sowmya - 11-24-2011

[attachment=857][attachment=858]please check it out



RE: WPF Object problem - Ankesh - 11-24-2011

Ok.. got it.

Script seems to be fine. As u have said earlier that u r trying to use DP for the code bt u r getting an error. What error are you getting? Plz paste your DP code.

Meantime, you can refer the link http://www.joecolantonio.com/2011/02/03/qtp-11-patch-fixes-net-bpt-service-test-and-other-issue/

It might help!!


RE: WPF Object problem - sowmya - 11-24-2011

Ya i got it.I included the mandatory property and value while writing DP it works fine.


Thanks a lot for reply




RE: WPF Object problem - Ankesh - 11-24-2011

Glad that its working Fine. Smile