-
-
Save codeyu/de25e7e66cb22631e249 to your computer and use it in GitHub Desktop.
PhantomJS drag and drop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.open('http://jsbin.com/ifuma#noedit', function () { | |
setTimeout(function () { | |
page.sendEvent("mousedown", 10, 10); | |
page.sendEvent("mousemove", 200, 200); | |
page.sendEvent("mouseup", 200, 200); | |
page.render('ss.png'); | |
phantom.exit(); | |
}, 3000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment