public
Created

  • Download Gist
zombie-example.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
// less.js, modernizer, and almost all dymanic content seems broken :(
var zombie = require("zombie")
, assert = require("assert")
;
 
var jxson = new zombie.Browser();
var darthburrit0 = new zombie.Browser();
var url = 'http://localhost:8080/simple-chat/index.html';
// var url = 'http://localhost:8080/stylesheets/master.less';
 
jxson.visit(url, function(err, browser){
// if (err) throw err;
 
// console.log('args', browser);
browser
.fill('nick', 'jxson')
.pressButton('Join →', function(err){
console.log('heyo', browser.html('.messages'));
});
});
 
darthburrit0.visit(url, function(err, browser){
// if (err) throw err;
 
// console.log('args', browser);
browser
.fill('nick', 'darthburrit0')
.pressButton('Join →', function(err){
 
 
setTimeout(function(){
console.log('heyo', browser.html('body'));
 
}, 500)
});
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.