I'm trying to use zombie with the mink driver.
I was having much luck so I broke it down to a raw JavaScript file.
When I use browser.visit(url) I get nothing from browser.html() in the callback.
When I use browser.resources.get(url) I get the expected body in response.body.
var Browser = require("zombie");
var assert = require("assert");
// Load the page from localhost
browser = new Browser({maxWait: 60});
// Returns 200.
console.log(response.statusText);
// Returns the actual body.
console.log(response.body);
});
/** outputs:
Cookies:
Storage:
Eventloop:
Document:
*/
browser.dump();
if (err) {
console.log(JSON.stringify(err.stack));
}
// Outputs nothing.
console.
log(browser.html());
});