ExpandItem Action (Specific to XULTree Controls)

Applies to TestComplete 15.63, last modified on April 10, 2024


The ExpandItem action expands the tree widget control’s item specified by the Item parameter. The result is the same as if you would click the “+” of a collapsed tree view node. Note that the ExpandItem 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

This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.


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

CollapseItem Action (Specific to XULTree Controls)

Highlight search results