Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 845 Bytes

gremlins.md

File metadata and controls

33 lines (30 loc) · 845 Bytes
title layout
Gremlins.js
default

Example

gremlins.createHorde()
    .before(function(done) {
        var horde = this;
        setTimeout(function(){
            horde.log('async');
            done();
        }, 500);
    })
    .before(function() {
        this.log('sync');
    })
    .gremlin(gremlins.species.formFiller())
    .gremlin(gremlins.species.clicker().clickTypes(['click']))
    .gremlin(gremlins.species.scroller())
    .gremlin(function() {
        alert('here');
    })
    .after(function() {
        this.log('finished!');
    })
    .mogwai(gremlins.mogwais.alert())
    .mogwai(gremlins.mogwais.fps())
    .mogwai(gremlins.mogwais.gizmo().maxErrors(2))
    .unleash();

https://github.com/marmelab/gremlins.js