UNPKG

webdriverjs

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

14 lines (10 loc) 429 B
module.exports = function dragRight (cssSelector, touchCount, duration, callback) { if(arguments.length === 2 && typeof touchCount === 'function') { callback = touchCount; touchCount = null; } else if(arguments.length === 3 && typeof duration === 'function') { callback = duration; duration = null; } this.swipe(cssSelector,0.3,0.5,0.7,0.5,touchCount,duration,callback); };