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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

1730


How to handle dynamic objects in quicktest professional (qtp)?

542


How to check bitmap output value?

621


What are the different ways to invoke an application using QTP?

639


What are the steps involved in the recovery scenario wizard?

551






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

1526


What is checking bitmaps?

546


Does quicktest professional (qtp) is unicode compatible?

532


Which environments are supported by hp qtp?

592


what kind of frame work you used in your last project?

1809


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1277


In qtp, how you can remove the spaces from string?

538


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1856


How to record a qtp script ?

546


Explain the differences between table and db checkpoints?

566