Description

Retrieves all direct children of the specified parent object.

Important Information

You can use this method to enumerate the objects in an object repository and retrieve a collection of objects, even if you do not have any information about any of the objects in the object repository.

Syntax

object.GetChildren([Parent])

Syntax Details

ArgumentDescription
objectAn expression evaluating to an object of type ObjectRepositoryUtil.
ParentOptional. A Variant value.

The parent object.

You can specify the parent as an object (IDispatch pointer) or its full path as it appears in the Editor, for example, Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").

If you do not specify a parent object, all top-level objects in the object repository, including checkpoint and output objects, are retrieved.

Return Type

A TOCollection object.