Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to get all the objects count and objects names in
webpage using QTP ?

Answer Posted / sai

Dim a(100)

set p=Browser("Home").Page("Home").ChildObjects
cnt=0
For i=0 to p.count-1
b=p(i).GetTOProperty("micclass")
If i<1 Then
a(0)=b
Else
For j=0 to Ubound(a)-1
If a(j)<>b Then
cnt=cnt+1
a(cnt)=b
End If
Next
End If
Next

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a standard checkpoint ?

1069


What are the recording modes in wave event?

2015


What are the data types in qtp?

1108


What is the syntax for how to call one script from another?

1036


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1623


what type of framework u r using in ur organization

2066


What is action split and the purpose of using this in qtp?

1018


When using descriptive programming?

1079


Connect to QC using AOM.

1676


How to capture all the data of a webtable, weblist and combolist using QTP?

3335


What is keyword driven framework?

1078


What is the difference between Keyword Driven test and Data Driven test?

2218


What is qtpro? What is quick test pro?

1054


How many types of status are there?

1039


Explain types of output values?

1024