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
What are the recording modes in qtp?
How many types of parameters are available in quicktest professional (qtp)?
How does qtp identify objects in the application?
explain keyword driven framework with banking domain?
Tell me about qtp?
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
what frame work you are following?
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
How to use conditional loops in qtp ?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
When using descriptive programming?
How many tabs are available in debug viewer pane?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
How to analyzing test results using quicktest professional?