RenameObject Method

Description

Renames the specified object in the object repository.

Important Information

You can rename an object to provide a more descriptive name, which makes it easier to read your test or component steps.

Syntax

object.RenameObject(Object, Name)

Syntax Details

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

The object to rename.

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

NameRequired. A String value. The new name you want to use for the object.

Return Type

A Variant value.  The new name of the object as saved in the object repository.