ExpandItem Action (Specific to XULTree Controls)

Applies to TestComplete 15.68, last modified on October 16, 2024

Description

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.

Declaration

TestObj.ExpandItem(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

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

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

CollapseItem Action (Specific to XULTree Controls)

Highlight search results