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 |
How to check the value for variables during run time. Pls anybody can give the answer.. Thanks in advance...
How to enable the text check point in qtp? By default it is disables
1 Answers Sify, ssinformatics,
How To clear the AutoComplete?
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
Tell me Three major differences between QTP & Winrunner?
suppose i can done the project in automation tool with QTP in that time what i can say?
What is the Difference Between Quick Test Pro and Quick test professional?
What is the Maximum syncronization timeout in seconds in QTP 9.5
Explain the keyword createobject with an example.
setroproperty and getroproperty difference
In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?
Describe the process for writing text check point for a web application?