Lurker News

Comments (70) 33 threads

Show all comments

Showing thread 17 of 33

dutzi_1 reply#
Nice work!

Can you please provide an example for using `evaluate()` to get the page's content?
I tried this, but didn't get anything:

  new Nightmare()
    .goto('http://yahoo.com')
    .evaluate(function (page) { return this.content; }, function (res) {console.log(res);})
    .run();