Micro Focus QTP (UFT) Forums
WPF Objects - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: WPF Objects (/Thread-WPF-Objects)



WPF Objects - Amit Singh Chauhan - 06-10-2008

Hi,
My code for descri[ptive programming was working fine but when comes to create object of WPF type it fails.

Can anyone tell the reason for this?and solution.


RE: WPF Objects - FredMan - 06-14-2008

You need the WPF add-in.


RE: WPF Objects - Amit Singh Chauhan - 06-16-2008

I have installed them but even it is not recognising.


RE: WPF Objects - qtpnewbee - 06-21-2008

I have the same problem. I do not create the wpfbutton in the OR because the text of the button will be changed. But I cannot create the wpfbutton in PD.
Anything I do wrong?
Thank you very muchSadSad
=======================================
Code:
Set CashButtonDesc = Description.Create
CashButtonDesc("text").value = szCashText
CashButtonDesc("wpftypename").value = "button"
CashButtonDesc("x").value = "854"
CashButtonDesc("y").value = "8"

If WpfWindow("Main").WpfButton(CashButtonDesc).Exist  Then
   WpfWindow("Main").WpfButton(CashButtonDesc).Click
End If
==========================================