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
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
What is the difference between Keyword Driven test and Data Driven test?
Define Canvas view of UFT?
Which environments are supported by hp qtp?
what type of framework u r using in ur organization
What is the default add-ins in qtp?
why should we give deliver good quality software?
What are private functions in QTP? How they can be called from the function library?
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
What is method name to compare two XML files.
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
How many ways we can parameterize data in quicktest professional (qtp)?
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
how will you load the test cases in ddt?
What are the different attribute used with regular expression?