Closed aliminnet closed 9 years ago
x2
Can't you just evaluate and return the HTML from it?
I figured out like this:
new Nightmare(options)
.goto('http://www.blablabla.com/')
.wait()
.evaluate(function () {
return document.documentElement.outerHTML;
}, function (result) {
console.log( result);
}
).run(function( err, nightmare){
console.log("done");
});
In PhantomJs we can get the content of page like this:
What is the best way to get the content is nightmarejs?(I can see evaluate can help but I think it is not very good solution)