# Double tap using appium javascript client (wd)

**URL:** <https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664>\
**Category:** Support\
**Created:** [September 24, 2018, 9:17am UTC](https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664 "2018-09-24T09:17:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![appiumgkv](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@appiumgkv](https://discuss.appium.io/u/appiumgkv)\
**Post date:** [September 24, 2018, 9:17am UTC](https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664/1 "2018-09-24T09:17:16Z")

</div>

The documentation from wd says, ([http://appium.io/docs/en/commands/interactions/touch/double-tap/](http://appium.io/docs/en/commands/interactions/touch/double-tap/) )  
// Not supported

// wd example  
// Using tapElement method  
await driver.tapElement(elementOne);

// Using touch actions  
let action = new wd.TouchAction();  
action.tap({el: element});  
await action.perform();

Is there no method for double tapping an element using the javascript client? If there is a workaround for this problem?

Appium version (or git revision) that exhibits the issue: 1.9.0  
Last Appium version that did not exhibit the issue (if applicable):  
Desktop OS/version used to run Appium: MacOSX 10.13.6  
Node.js version (unless using Appium.app|exe):  
Mobile platform/version under test: Android 8.0  
Real device or emulator/simulator: Real device  
Appium CLI or Appium.app|exe: CLI

---

<div class="post-metadata">

**Author:** ![Bilal\_Jarwan](https://discuss.appium.io/user_avatar/discuss.appium.io/bilal_jarwan/32/6182_2.png) [@Bilal\_Jarwan](https://discuss.appium.io/u/Bilal_Jarwan)\
**Post date:** [September 24, 2018, 4:44pm UTC](https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664/2 "2018-09-24T16:44:41Z")

</div>

Actions action = new Actions(driver);  
action.moveTo(element);  
action.doubleClick();  
action.perform();

this one not working ?

---

<div class="post-metadata">

**Author:** ![appiumgkv](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@appiumgkv](https://discuss.appium.io/u/appiumgkv)\
**Post date:** [September 25, 2018, 2:17am UTC](https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664/3 "2018-09-25T02:17:57Z")

</div>

I’ll try this and post the results. There seems to be no doubleTap though which is supported by other clients. Thanks

---

<div class="post-metadata">

**Author:** ![appiumgkv](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@appiumgkv](https://discuss.appium.io/u/appiumgkv)\
**Post date:** [September 25, 2018, 6:04am UTC](https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664/4 "2018-09-25T06:04:29Z")

</div>

Hi @Bilal_Jarwan,

I tried the doubleClick() method. But looks like there is no such method. I get an error .

This is my method.

```
async doubleTapElement() {
        let action = new (<any>(this._driver.wd())).TouchAction(this._driver.driver);
        action.moveTo(this.trebleText());
        action.doubleClick();
        await action.perform(); 
    } 

```

This is the error message, **TypeError: action.doubleClick is not a function**

I also checked with action.doubleclick(); since the documentation says doubleclick() and not doubleClick(). But same error

---

<div class="post-metadata">

**Author:** ![Bilal\_Jarwan](https://discuss.appium.io/user_avatar/discuss.appium.io/bilal_jarwan/32/6182_2.png) [@Bilal\_Jarwan](https://discuss.appium.io/u/Bilal_Jarwan)\
**Post date:** [September 25, 2018, 7:33am UTC](https://discuss.appium.io/t/double-tap-using-appium-javascript-client-wd/23664/5 "2018-09-25T07:33:13Z")

</div>

your using JS for automation or JAVA ?
