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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we Test Welcome Screens and Process Images with QTP

1427


Why script error occur in between recording in qtp?

1766


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

700


What is the script for database check point, bitmapchek point, regular expression ?

1553


How did you use regular expressions in QTP and also in WR?

2165






write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1491


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1601


Explain how you can delete excel file in qtp?

592


What are the differences between quicktest professional and winrunner?

538


how will you check how many members visited the website www.infosys.com?

1480


How many add-ins comes by default with quicktest professional?

554


what is profile tool?

1609


Output values? i want a practical example

1309


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1485


What is the difference in testing a client-server application and a web application?

583