UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

43 lines (40 loc) 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = doubleClick; async function doubleClick() { if (!this.isW3C) { await this.moveTo(); return this.positionDoubleClick(); } await this.performActions([{ type: 'pointer', id: 'pointer1', parameters: { pointerType: 'mouse' }, actions: [{ type: 'pointerMove', origin: this, x: 0, y: 0 }, { type: 'pointerDown', button: 0 }, { type: 'pointerUp', button: 0 }, { type: 'pause', duration: 10 }, { type: 'pointerDown', button: 0 }, { type: 'pointerUp', button: 0 }] }]); return this.releaseActions(); }