07-11-2008, 11:53 AM
Hi All,
I have installed .net addins.
Now I have written a function in which I pass object of button and its name as
now in this function first check whether object exist or not.
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.
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.