lib/getData.js
function takeSnapshot(page, ph, callback) {
    page.evaluate(function () {
        return document.documentElement.outerHTML;
    }, function (document) {
        if (document) {
            callback(null, page, ph, document);
        } else {
            callback('Nothing retrieved', page, ph, null);
        }
    });
}
function takeSnapshot(page, ph, callback) {
    page.evaluate(function () {
        return document.documentElement.outerHTML;
    }, function (document) {
        if (document) {
            callback(null, page, ph, document);
        } else {
            callback('Nothing retrieved', page, ph, null);
        }
    });
}
function takeSnapshot ( page , ph , callback ) { page . evaluate ( function ( ) { return document . documentElement . outerHTML ; } , function ( document ) { if ( document ) { callback ( null , page , ph , document ) ; } else { callback ( 'Nothing retrieved' , page , ph , null ) ; } } ) ; }
Takes a static snapshot of the page
@param page
@param ph
@param {pageResultCallback} callback
Takes a static snapshot of the page