Skip to content

Instantly share code, notes, and snippets.

@jxson
Created October 12, 2011 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jxson/1279930 to your computer and use it in GitHub Desktop.
Save jxson/1279930 to your computer and use it in GitHub Desktop.
// 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)
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment