Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WPF Objects problem
#1
Not Solved
Hi All,

I have installed .net addins.

Now I have written a function in which I pass object of button and its name as
Code:
WPFButtonClick(WpfWindow("WindowName").WpfButton("ButtonName"),"ButtonName")

now in this function first check whether object exist or not.
Code:
if WpfWindow("WindowName").WpfButton("ButtonName").Exist then
WpfWindow("WindowName").WpfButton("ButtonName").click
msgBox "Clicked"
else
msgBox "Button not present"
endif

When Apllication runs and it works fine but when I close the application it gives an error "WpfWindow("WindowName")" not recognised.


My problem is : The above code works fine for objects other than WPFObjects, like WCFObjects, also for flight reservation application.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no action on click for particular wpf button jlavrecka 1 1,261 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Issue in QTP WPF vimal_selvam 5 13,930 06-26-2018, 05:40 PM
Last Post: rateebhatt
  UFT 14.01 - identifying wpf objects. but not performing action. chinmoyee 1 2,353 11-15-2017, 03:42 PM
Last Post: Ankur
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,779 10-25-2016, 06:57 PM
Last Post: robertosalemi
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,292 07-14-2016, 07:52 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)