RemoveObject Method

Description

Removes the specified object from the object repository.

Important Information

You can remove objects from an object repository if they are no longer needed. Removing unnecessary objects helps to simplify maintenance and improves object repository performance.

Syntax

object.RemoveObject Parent, Object

Syntax Details

ArgumentDescription
objectAn expression evaluating to an object of type ObjectRepositoryUtil.
ParentRequired. 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("Advantage Shopping").Page("Advantage Shopping").

If the object you want to remove is a top-level test object, a checkpoint object, or an output object, specify NULL as the Parent argument value.

ObjectRequired. A Variant value.

The object to remove from the object repository.

Tip: You can use the GetObject, GetObjectByParent or Item methods to retrieve the object to use as this argument value.

Return Type

None