Skip to main content

Double Click Element

The Double Click Element action locates a UI element by its visible text and performs two consecutive click actions.

Typical Use Cases

  • Opening folders.
  • Selecting list items requiring a double tap.
  • Applications that interpret double taps differently from single taps.

Syntax

var task = suremdmjs.automate().doubleClick(
"<Package Name>",
"<Element Text>"
);

Parameters

Same as Click Element. Click here to know the parameters.

Example

var task = suremdmjs.automate().doubleClick(
"",
"Gallery"
);

suremdmjs.automate().performAction(
task,
"onSuccess",
"onFailure"
);

Expected Result

The Gallery item receives a double tap.

💬 Help us improve this documentation

Was this information useful?

Your feedback helps us keep our documentation accurate, up to date, and useful.