CollapseItem Action (Specific to XULTree Controls)

Applies to TestComplete 15.42, last modified on September 08, 2022

Description

The CollapseItem action collapses the XUL tree control’s item specified by the Item parameter. The effect is the same as if you would click the “-” button of the expanded node. Note however, that the CollapseItem action does not move the mouse cursor.

Declaration

TestObj.CollapseItem(Item)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Item [in]    Required    Variant    
Result None

Applies To

The method is applied to the following object:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameter:

Item

Specifies the path to the desired item to be collapsed.

Each item in the path can be specified by its caption or index; individual captions and indexes must be separated with pipeline characters ( | ). Indexes must be enclosed in brackets - [ and ].

If the item caption includes a bracket or a pipeline character, you should address the item by its index.

Result Value

None.

See Also

ExpandItem Action (Specific to XULTree Controls)

Highlight search results