LongTouchItem Action (Xamarin.Forms Controls)

Applies to TestComplete 14.91, last modified on July 20, 2021

Description

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

Declaration

TestObj.LongTouchItem(ItemHoldDuration)

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.

Parameters

The method has the following parameters:

Item

Specifies the zero-based index of the desired item.

HoldDuration

Specifies the touch duration (in milliseconds).

Result Value

None.

Remarks

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