title: How to get DIV attributes with puppeteer?
body: <p>I get the <code>href</code> of <code>a</code> elements by</p>
  
  <pre><code>const hrefs = await page.evaluate(() =&gt; 
  Array.from(document.body.querySelectorAll('a'), ({ href }) =&gt; href));
  </code></pre>
  
  <p>but when I try to get <code>aria-label</code> or <code>data-xx</code> of <code>div</code> elements, this method does not work.</p>
  
  <p>Why is that and how can I get <code>aria-label</code> or <code>data-xx</code> attributes of <code>div</code> elements?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="test" arial-label="something" data-all="something"&gt;
  &lt;/div&gt;
  </code></pre>