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



I got an error "The"flightres" Dialog was not found in the Object Repository. Check ..

Answer / 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

I got an error "The"flightres" Dialog was not found in the Object Repository. Check ..

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

I got an error "The"flightres" Dialog was not found in the Object Repository. Check ..

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

I got an error "The"flightres" Dialog was not found in the Object Repository. Check ..

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

Post New Answer

More QTP Interview Questions

How to load an object to a object repository at RUN TIME ?

3 Answers  


write script for finding number of broken links in web page? kindly please answer my question.

3 Answers   Manhattan, Oracle, Virtusa,


diff between wr and qtp in detail.

4 Answers  


where the log files stored when using QTP? plz send answer to me ........

1 Answers  


What is the syntax to use out of two characters. Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,






Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

0 Answers   IBM,


Plz explain about MATCH/EXACT MATCH/IGNORE SPAGE in text check points?

1 Answers  


Wt is the difference between Business Component and scripted component?

1 Answers   BSL,


How can i open a file in Textpad and replace a string with another using QTP

1 Answers   Wipro,


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

0 Answers   HCL,


How to Analyze the Checpoint results by Checking Bitmaps?

1 Answers  


How to record & run on Japanese language application using english version of QTP ???

4 Answers   ABC,


Categories