|This method is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.|
Simulates a long touch over a button in an iOS application.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
|HoldDuration||[in]||Optional||Integer||Default value: 1000|
The method is applied to the following objects:
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The method has the following parameter:
Specifies the touch duration (in milliseconds).
To view an example that demonstrates how to use the
LongTouchButton method to simulate touches on buttons in iOS applications, see Touching a Button.
Testing iOS Applications (Legacy)
Touching a Button
Selecting a Segment
TouchButton Action (Mobile Controls)
LongTouchButton Action (Android Controls)
LongTouch Action (Android Objects)
LongTouch Action (Mobile Objects)