I got an error "The"flightres" Dialog was not found in the
Object Repository. Check the OR to confirm that the object
exists or to find the correct name for the object." while
running the following script
Set flightres=description.Create()
flightres("text").value="Login"
flightres("Class Name").value="Dialog"
Set agent = description.Create()
agent("nativeclass").value="WinEdit"
agent("attachedtext").value="Agent Name:"
Set pwd = description.Create()
pwd("nativeclass").value="WinEdit"
pwd("attachedtext").value="Password"
Set button = description.Create()
button("nativeclass").value="WinButton"
button("Text").value="OK"
Dialog("flightres").WinEdit("agent").Set "test"
Dialog("flightres").WinEdit("pwd").Set "mercury"
Dialog("flightres").WinButton("button").Click
Please let me know if i made any mistake in the above script...?
Answer Posted / raj
Don't put object name in qoutes.
write like
Dialog(flightres).WinEdit(agent).Set "test"
Dialog(flightres).WinEdit(pwd).Set "mercury"
Dialog(flightres).WinButton("button").Click
If you put object name in qoute then qtp try to find that
object in OR.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is difference between run time object and test object?
What are the advantages of Object Repository?
How to handle dynamic objects in quicktest professional?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Explain measuring transaction.
Mention the different actions types of qtp.
Explain how qtp identifies objects?
can anyone tell me from where i can download qtp demo or crack version
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
How you can delete excel file in qtp?
What is Unicode Compatibility?