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.



Can anyone explain me about child objects in detail;when they are used and why do we need them ? p..

Answer / 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

More QTP Interview Questions

Can we continue functionality testing without framework?

4 Answers  


How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field?

1 Answers   Adobe, Patni,


How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..

2 Answers  


which command u will use to access the application through descriptive programing?

7 Answers   Datamatics,


What is diffrence between Global variables and Environment variables...Anybody can give me answer..Thanks in advance..

3 Answers   IBM,






How to recognize and read data from pdf file using Descriptive Programming in QTP?

1 Answers   Satyam,


In QTP what is the difference between Step-in, Step-out, Step-over ?

3 Answers   CTS,


How to map the test cases to requirements in QC?

4 Answers   IBM,


What's Checkpoints for QTP?

1 Answers  


For what purpose to we use object repository in a application?also explain usage of obj.repository?

3 Answers  


What are the Test design techniques you uses in ur project?

0 Answers   Accenture,


How to use actions in qtp ?

0 Answers  


Categories