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

What r types of parametarizations?

6 Answers  


What is the difference between run time object and test object in QTP?

0 Answers  


What is test object model in QTP?

1 Answers   Crea,


How can we display the names of the buttons in the toolbar of a webpage

1 Answers  


hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take?

1 Answers   ADP,






How to load a object repository in QTP during runtime?

2 Answers   BNP Paribas, Virtusa,


How can you merge two Object Repositories?

3 Answers  


Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.

4 Answers  


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?

0 Answers  


What is log file?How to write log file code?

2 Answers   Apps Lab, Value Labs,


Does QTP work in UNIX environment

5 Answers   BirlaSoft, C1 India,


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

0 Answers  


Categories