CollapseItem Action (Specific to XULTree Controls)

Applies to TestComplete 15.64, last modified on June 12, 2024


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.



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.


The method has the following parameter:


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


See Also

ExpandItem Action (Specific to XULTree Controls)

Highlight search results