UNPKG

webdriverjs

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

14 lines (10 loc) 428 B
module.exports = function dragDown (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.5,0.3,0.5,0.7,touchCount,duration,callback); };