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
How does quicktest professional identifies the object in the application?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
What are the differences between quicktest professional and winrunner?
Discuss quicktest professional environment?
Is it possible to merge two object repository files in qtp?
What is Unicode Compatibility?
How many scripts did you have?
Explain how Does Run time data (Parameterization) is handled in QTP?
How many types of recording modes in qtp? Which will be used when?
What do you mean by iteration?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What is checking bitmaps?
How to open a new test using quicktest professional?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?