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 are some test assets and related extensions of qtp?

769


How to export quicktest professional results to an .xls file?

814


Is it possible to call win runner script in qtp?

847


How to add synchronisation points in qtp?

762


Explain calling sub procedure.

830


What are the five challenges you faced in QTP?

2953


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1794


What is the use of sendkeys and what are send keys

2191


What are the different types of qtp test assets and their extensions?

854


Who uses qtp tool?

754


how to disable the pop ups through QTP using a script

1939


When to use descriptive programming?

801


What is Unicode Compatibility?

1643


what is command for executing files?

1711


what is test scheduleling?

2243