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
How many ways we can parameterize data in quicktest professional (qtp)?
How to use debug tools?
In qtp, how you can remove the spaces from string?
WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,
What are the flaws in water fall model and how to overcome it?
How to execute a winrunner script in quicktest professional (qtp)?
images are dynamically changes how to compare two images with out using the bitmap
Explain runtime dynamic settings?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
Why qtp always start action1 and does not start action?
why you have standardized functions? plzzz guys with real time exp. do answer
How can I check if a environment variable exist or not?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
what is clean sweep?
Can we record using all the modes in a single script? Explanation with example is appreciated