![]() |
WPF Objects problem - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: WPF Objects problem (/Thread-WPF-Objects-problem) |
WPF Objects problem - Amit Singh Chauhan - 07-11-2008 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 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. |