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.