ClickItemR Action (Specific to QtTreeWidget Controls)

Applies to TestComplete 14.30, last modified on November 21, 2019

Description

Moves the mouse pointer to the item specified by the Item parameter, in the column specified by the Column parameter, and then simulates a single click of the right mouse button over the item.

Declaration

TestObj.ClickItemR(ItemColumnShift)

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    
Column [in]    Required    Variant    
Shift [in]    Optional    TShiftKey Default value: skNoShift   
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 parameters:

Item

Specifies the path to the desired item. The path should be relative to the current item or to the tree root, respectively. To indicate that the path starts from the tree root, place the pipeline character ( | ) at the beginning of the path.

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 ].

To indicate variable parts of the item caption, you can use the asterisk (*) and question mark (?) wildcards. The asterisk corresponds to a string of any length, the question mark corresponds to any single character. The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

Note: If the item caption includes a bracket or a pipeline character, address the item by its index or with the question mark wildcard.

Column

Specifies the column to be clicked. This parameter takes the column’s index or caption.

The index is zero-based and corresponds to the column’s position within the object's internal columns collection rather than the column’s visible position in the object.

The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length, the question mark corresponds to any single character. To specify more complicated parts of a caption, use regular expressions.

The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

Shift

Specifies whether the CTRL, ALT or SHIFT key will be pressed during the click. The default value is skNoShift (no Shift key is pressed). See TShiftKey.

Result Value

None.

Remarks

If the item is not found, the method fails and posts an error message to the test log.

See Also

ClickItem Action (Specific to QtTreeWidget Controls)
ClickItemM Action (Specific to QtTreeWidget Controls)
DblClickItemR Action (Specific to QtTreeWidget Controls)

Highlight search results