effroi-as-promised
v1.0.1
Published
Promise and Jquery wrappers for the EffroiJS device event simulation library
Downloads
3
Readme
Effroi-as-promised is a lightweight wrapper around the effroi device event simulation library that results in promises for all device operations. Additionally, it provides support for jquery so that effroi operations can be invoked on elements using complex selectors. This is expected to be used with a javascript loader like webpack, and since effroi hasn't published a distribution, likely with karma-effroi.
Usage
var effroiAsPromised = require('effroi-as-promised')(effroi);
effroiAsPromised.click($('.something'))
.then(function(){ return effroiAsPromised.click($('.else'))})
.then(function(){ return effroiAsPromised.click($('.again'))});