title: Puppeteer: How to get the contents of each element of a nodelist?
body: <p>I'm trying to achieve something very trivial: Get a list of elements, and then do something with the <code>innerText</code> of each element.</p>
  
  <pre><code>const tweets = await page.$$('.tweet');
  </code></pre>
  
  <p>From what I can tell, this returns a nodelist, just like the <code>document.querySelectorAll()</code> method in the browser.</p>
  
  <p>How do I just loop over it and get what I need? I tried various stuff, like:</p>
  
  <pre><code>[...tweets].forEach(tweet =&gt; {
    console.log(tweet.innerText)
  });
  </code></pre>