Silk Mobile

Table of Contents (Homepage)

SetDefaultClickDownTime

void SetDefaultClickDownTime(int clickDownTime)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

images/images/os-icons/os_symbian02_150x150.png

images/images/os-icons/os_windows_mobile_150x150.png

Description

Set the default click down time (default is 100 miliseconds)

Parameters

  • DownTime: Click down time value (milliseconds)

  • Note: Once set, will apply to all the notations of click command during the script. To change behavior need to set DownTime again using this command.

Usage

Example

Scenario: In the following example, we will use the 'SetDefaultClickDownTime' command to press on an icon for 10 seconds.

Step 1: Use the 'SetDefaultClickDownTime' command with the 'Downtime' parameter equal to 10000.

images/download/attachments/3310634/image36.gif

Step 2: Perform click command on the 'Play Store' icon. The application will not launch, but will be highlighted instead due to the long click.

Note: The click will last for 10 seconds.

images/download/attachments/3310634/image37.gif

images/download/attachments/3310634/image38.gif

C