title: Headless Chrome ( Puppeteer ) - how to get access to document node element?
body: <p>I'm using <a href="https://www.npmjs.com/package/phantom" rel="noreferrer">phantomJs</a> to parse some content, get some info from it (max image size on page, for example), etc. I've decided to move to <a href="https://github.com/GoogleChrome/puppeteer" rel="noreferrer">puppeteer</a>. And i had faced the issue - in my functions, that was running at phantomJs, they were working with document node element. So, in puppeteer, as i understood, it's impossible to return node element from page.evaluate and other functions. So, is there any other way to overcome this problem? Or maybe i have to use another library? Thank you!</p>