title: console.log does not work inside pupeteer evaluate function
body: <p>Considering the following code:</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  
  const run = async () =&gt; {
      const browser = await puppeteer.launch();
      const page = await browser.newPage();
      await page.goto('https://www.facebook.com/pg/fotosdacurva/photos/?tab=albums', { waitUntil: 'networkidle' });
  
      const data = await page.evaluate(() =&gt; {
          console.log("ola");
  
          const tds = Array.from(document.querySelectorAll('#content_container a'))
          return tds.map(td =&gt; td.textContent)
      });
  
      //console.log(data);
      await page.screenshot({ path: 'example.png' });
  
      await browser.close();
  };
  
  run();
  </code></pre>
  
  <p><code>console.log</code> inside <code>page.evaluate()</code> function is not working and I cant figure out why? I think it might be related to async behavior. The function is being executed as the "data" variable is being set.</p>
  
  <p>Thank you.</p>