Micro Focus QTP (UFT) Forums

Full Version: WPF Objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You need the WPF add-in.
I have installed them but even it is not recognising.
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
==========================================