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:
I 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.
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").Activate
wait(10)
Window("Form1").WinObject("Exit").Click
I 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.