1. Pls can anyone give me the descriptive programing
script to find the number of edit boxes in a login window
in flights reservation (windows application only not web).
2. Using descriptive programing, how do you handle
changing URLs. Pls anyone, very urgent
Answer Posted / sanu
Try this...
Set obj_edit = description.Create
obj_edit("nativeclass").value = "Edit"
Set EditDesc = dialog("Login").ChildObjects(obj_edit)
msgbox "Number of Edit Fields : "& EditDesc.count
For i = 0 to EditDesc.count - 1
EditDesc1 = (EditDesc(i).getROProperty("Attached Text"))
msgbox EditDesc1
Next
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
How to write business scripts using object repository with different scenarios
How to use output values in qtp ?
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
How to save your test using quicktest professional (qtp)?
How will you check a web application for broken links using qtp?
How to find the name of the machine where you are running your automation scripts in qtp?
What phases are involved in testing an application in qtp?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
what is output value in QTP and how it can be used in automation testing