![]() |
|
Simple problem-unable to trace a button on form - 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: Simple problem-unable to trace a button on form (/Thread-Simple-problem-unable-to-trace-a-button-on-form) |
Simple problem-unable to trace a button on form - skunkhead - 01-14-2011 hi guys, I'm beginner to QTP and in the learning process. I'm having a problem on testing an application. It is very simple. I created an application with a form and add a button(in vb). The button's purpose is just to close the application. The button's name is buttonExit. I'm able to learn(Object Repository Manager) the application to obtain the objects available in the form. Then i created a very simple script to run the application and close it, as below: Code: Window("Form1").ActivateI guess the script was not wrong. Error message upon executing the last code: "Cannot identify the object "Exit" (of class WinObject"). Verify that this object's properties match an object currently displayed in your apllication" Do you guys have any idea? Thanks. RE: Simple problem-unable to trace a button on form - amitspandey - 01-14-2011 Hi, U should be careful while learning the objects. 1)Did ur OR learn the Object with option all objects present in the window. 2)if this does not solve ur problem try to learn the object again. Code: if dialog("abc").winbutton("xyz").exist thenregards, Amit 9773539313 |