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
How to handle dynamic objects in quicktest professional (qtp)?
What are the recording modes in wave event?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
regular expression in qtp standar check point for months from accepting months from january to december only
is there any addin for remedy user application
Have you used xml check point in your project?
What is a Patch in QTP?
How to create Reusable and Multiple Actions?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
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
What is debugging? How you debug your script?
What the differences are and best practical application of Object Repository?