what is the difference between child objects and child Item in QTP?
Tags:
Question ID: 105839
0
0
Marked as spam
Posted by (Questions: 9, Answers: 3)
Asked on January 16, 2015 11:50 am
202 views
Answers (1)
1
Private answer

Child Objects return a collection of objects of a specific type (object class) in a GUI. For instance, you could retrieve a collection of all of the webedits, buttons, WinEdit, checkboxes, etc. One common way to do this is using a description object. Here's an example of getting all of the WebButton objects on a page:

set obnDesc = Description.Create()
obnDesc(''Class Name'').Value = ''WebButton''
Browser(''title:=.*'').Page(''title:=.*'').ChildObjects(''objDesc'')

Child items are used when dealing with a WebTable object. You can access the cells in a WebTable as ChildItems.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on April 1, 2015 1:48 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top