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...?
Answers were Sorted based on User's Feedback
Answer / radhika
Hi the description for the above object is incorrect
Flightres object
flightres("text").value="Login"
flightres("Class Name").value="Dialog"
Instead of Class Name you should put it as "micclass"
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / 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 |
Answer / roli mohanty
do not put theobject in quotes if u put on quotes qtp
sercch the object in OR for which the error come
Dialog(flighters).WinEdit(agent).set"test"
Dialog(flighters).WinEdit(pwd).set"mercury"
Dialog(fighters).WinButton(button).click
| Is This Answer Correct ? | 0 Yes | 0 No |
I am not finding pages and links in object spy on web testing. I am only getting window and winobject. where is the problem? thanks
give me the code to save all messages of inbox of gmail into a folder and notepad
I have 3 add buttons of same properties in my page but i want trigger one of them i required in my recovery scnario manager is qtp recognizes it to recovre d scnario if so how qtp recognizes it
WHAT IS ENVIRONMENT VARIABLES?
7 Answers AZTEC, CTS, Ready Test Go,
How you handles Pop-up windows which are Dynamically changing in Runtime?
How can i select multiple items from a WebList bOX USING QTP
What is a Web Table?
How can we write script for a .net application in QTP? Can we use VB Script for .net application.
w is time parameter
write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this?
I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?
If 2 gmail browsers are opened in our system, how to enter the mail id and password into second browser by using discriptive program?