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

Can anyone explain me about child objects in detail;when
they are used and why do we need them ? please give me
sample code for this if possible.

Answer Posted / babu

Child objects method will be used to find the number of
objects in a particular page, frame etc ..
We can use this child objects method as follows:

Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Lists = Browser("Login").Page("Application").Frame
("folderFrame").ChildObjects(oDesc)
NumberOfLists = Lists.Count()
msgbox NumberOfLists

By using above statements, you can find the links available
in the frame "folderframe".

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Associate Repository in QTP 9.2 ?

1025


what is ODC and GDC?

7883


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

1074


Explain the differences between table and db checkpoints?

998


Can you write a script to check if the folder exists or not?

990


Difference between copy to action and call to action?

1021


Can we create user defined functions in qtp?

999


What is the keyword view and expert view in qtp?

954


What is the default add-ins in qtp?

997


What will be happen if i load object repository at run time, but it has already associated.

1787


Explain different checkpoints in qtp.

1260


Are Shared ORs read-only?

1065


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

1091


Problem with XML checkpoint in QTP ?

3923


What is the synchronization point in qtp?

1022