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
What is Associate Repository in QTP 9.2 ?
what is ODC and GDC?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
Explain the differences between table and db checkpoints?
Can you write a script to check if the folder exists or not?
Difference between copy to action and call to action?
Can we create user defined functions in qtp?
What is the keyword view and expert view in qtp?
What is the default add-ins in qtp?
What will be happen if i load object repository at run time, but it has already associated.
Explain different checkpoints in qtp.
Are Shared ORs read-only?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
Problem with XML checkpoint in QTP ?
What is the synchronization point in qtp?