Skip to content

Instantly share code, notes, and snippets.

@kedorlaomer
kedorlaomer / sendEvent.js
Created July 6, 2015 12:00
How sendEvent in slimerjs doesn't work
var page = require('webpage').create();
page.open("http://slimerjs.org", function(status) {
if (status == 'success') {
page.render('out.jpg', {quality: '100'});
}
})
window.setTimeout(function() {
var pair = page.evaluate(function(){
var button = document.getElementById("download");