title: How to use xpath in chrome headless+puppeteer evaluate()?
body: <p>How can I use <code>$x()</code> to use <a href="https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagexexpression" rel="noreferrer">xpath expression</a> inside a <a href="https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pageevaluatepagefunction-args" rel="noreferrer"><code>page.evaluate()</code></a> ?    </p>
  
  <p>As far as <code>page</code> is not in the same context, I tried <code>$x()</code> directly (like I would do in chrome dev tools), but no cigar.</p>
  
  <p>The script goes in timeout.</p>