Skip to content

Instantly share code, notes, and snippets.

@banzalik
Created May 31, 2014 13:35
Show Gist options
  • Save banzalik/52450ed248ccd88160d6 to your computer and use it in GitHub Desktop.
Save banzalik/52450ed248ccd88160d6 to your computer and use it in GitHub Desktop.
gemini
var gemini = require('gemini');
gemini.suite('twitter', function(suite) {
suite
.setUrl('/')
.setCaptureElements('body')
.before(function(actions, find) {
this.button = find('.twitter');
})
.capture('plain')
.capture('hovered', function(actions, find) {
actions.mouseMove(this.button);
})
.capture('pressed', function(actions, find) {
actions.mouseDown(this.button);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment