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

How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

2 Answers  


What is meant by Repository?

7 Answers   Four soft, ALFiNE IT Solutions,


Hi all, i have installed QTP8.2 in my system. but script is not generating while recording. What is the problem? is any file missing? pls let me know anybody...Thnaks

3 Answers  


What is difference between WR and QTP?

2 Answers  


How will u integrate oracel with QTP?

2 Answers   Microsoft,






Hi, I am new to QTP testing and was exploring the frameworks used for automation. I wanted help in writing various scripts and files for keyword driven automation like 1. Control File 2. Test Case File 3. Startup Script 4. Driver Script 5. Utility Script . etc It would be great if someone can give help in this context ... Thanks

0 Answers  


Diff b/w WEB TESTING AND Client server testing?

3 Answers   Ordain Solutions,


how to read log file using QTP??

3 Answers   AppLabs,


How do we run the scripts in QTP ?? what are the three options....

4 Answers   HCL,


By using QTP, How do you test a frame in a web page?

4 Answers   TCS,


How to connect to data base?

2 Answers  


What are they Advantages and Disadvantages in QTP 9.2?

1 Answers   Infotech,






Categories