assaf/zombie — Issue #267: Why doesnt this wait code actually wait
Author: lundin
Created: 2012-01-21 03:39:58+00:00
State: open

Hi,

Server side:

zombie.visit("myURL", function (err, browser) {
if (err)
throw(err.message);

browser.wait(waitforme,function(err, browser) {
console.log(browser.html());
//browser.dump();
})

function waitforme(window) {
return window.querySelector("#myReleaseDiv");
}

});

Client-side (simplfied):

//Extjs-lib

I never get the Socket.emit function to exceute, the DOM dumped in the wait function does not contain myRelaseDiv. But it does in Chrome.

Some Script does work, like Window onLoad, it just cant wait for ext to load?
Zombie has the potential to be the holy grail. Until there is some smart binding to PhantomJS, but i just cant make any use of it as it is right now.

Thanks.