beatfactor/nightwatch — pull request #2 by elfsternberg (2014-01-30 22:29:41+00:00)
Title: Hacking in the buttonDown/buttonUp protocols, thus enabling Dragand-Drop...

Pretty much what it says on the box. buttonUp/buttonDown protocol commands are pretty simple, and implementing them took very little rocket science. I've successfully used this to implement drag-and-drop testing against the jquery.sortable plug-in.

The button can be (0, 1, 2) or ('left', 'middle', 'right'). It defaults to left mouse button, and if you don't pass in a button but do pass in a callback, it will handle it correctly.