How to get all the objects count and objects names in
webpage using QTP ?
Answer Posted / chivukula.kumar
Hi Chandu,
ChilObjs=Browser("BrowserName").Page
("PageTitle").Childobjects
tol=Chilobj.count
for i = 0 to UBound(tol)
a =chilObjs(i).Name
print a
Next
| Is This Answer Correct ? | 3 Yes | 23 No |
Post New Answer View All Answers
What are the different types of recording modes in qtp? Which will be used when?
What is expert view in qtp?
Can we write winrunner language i.e TSL in QTP tool?
What is a data driven test in qtp?
Define virtual object?
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
What is meant by Output Value in UFT?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
How do Parameterization and Data-Driving relate to each other in QTP?
In qtp, how you can get the last character from a string?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What is the difference between Keyword Driven test and Data Driven test?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
what is error and fault in terms of software quality?
hi nani my doubt is how does qtp process metrix related to software process.