assaf/zombie — Issue #287: Not seeing a document in simple test app.
Author: tonyxyz
Created: 2012-02-24 17:40:13+00:00
State: open

From a reading of the API page I expect a document to be loaded into the browser after a successful page visit. Much of the subsequent goodness - like browser.wait() - appears to need this.

I run this in node:

var util = require("util");
var zombie = require("zombie");
var assert = require("assert");

zombie.visit('http://localhost:4567/three', function (e, browser, status) {
console.log("... : " + browser.html());
console.log("browser['window']=" + browser['window']);
console.log("browser['document']=" + browser.document);
console.log("browser['window']['document']=" + browser['window']['document']);
}
);

And I see this :

browser.html()=

Hello Earthlings!

browser['window']=[object Object]
browser['document']=[ null ]
browser['window']['document']=[ null ]

HTML there is, document there is not. My misunderstanding or bug?

(OSX, node --version v0.6.2, npm --version 1.0.106, zombie ## Version 0.12.1 2011-12-06)