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 / narandra
Dialog("flightres").Activate
Dialog("flightres").winedit("Agent Name").set "test"
Dialog("flightres").winedit("Password").set "merury"
Dialog("flightres").winbutton("ok").Click
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What environment does qtp run in?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
How to start recording using quicktest professional?
What are the data types in qtp?
Where you are storing your script?
How to find the path of folder in which the test is saved in qtp?
What is a checkpoint? How many check points are there in qtp?
Hi,All How to create a link in excel sheet using qtp
What is QTP testing process?
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
How can you write the scripts that operate on different objects depending on run-time information?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
How does QTP identify an object?
Is it possible to call win runner script in qtp?
Which environments does qtp support?