Skip to content

Commit

Permalink
Add touch doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ziczhu committed Dec 12, 2016
1 parent dbed67e commit c77ba9b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/macaca-wd.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,17 @@ function maximize() {}
*/
function frame(frameRef) {}

/**
* Apply touch actions on devices. Such as, tap/doubleTap/press/pinch/rotate/drag.
* @summary Support: iOS
* @see {@link https://w3c.github.io/webdriver/webdriver-spec.html#actions|POST /session/:sessionId/actions}
* @param {string} action Name of the action
* @param [object] args Parameters of the action
* @example driver.touch('doubleTap', { x: 100, y: 100 }); driver.elementById('info').touch('drag', { toX: 300, toY: 300 });
* @returns {Promise.<string>}
*/
function touch(action, args) {}

Object.defineProperty(module, "exports", {
get: function() {
var main = '../wd/lib/main';
Expand Down

0 comments on commit c77ba9b

Please sign in to comment.