LongTouchItem Action (Xamarin.Forms Controls)

Applies to TestComplete 15.64, last modified on May 16, 2024


Simulates a long touch over a control’s item specified by its index.


TestObj.LongTouchItem(Item, HoldDuration)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Item [in]    Required    Integer    
HoldDuration [in]    Optional    Integer Default value: 1000   
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 parameters:


Specifies the zero-based index of the desired item.


Specifies the touch duration (in milliseconds).

Result Value



To obtain the item’s index from the item’s caption, you can use native properties of the control. For more information, see Known Issues with Xamarin.Forms applications.

See Also

Xamarin.Forms Objects
Testing Xamarin.Forms Applications (Legacy)

Highlight search results