title: Puppeteer Div Tag null values
body: <p>Trying to scrape asins from an Amazon search. they are in a div tag like below.</p>
  <p>Example: &lt;div data-asin=&quot;B007Q13M2Y&quot;</p>
  <p>Currently my code does return some , but mostly null's. Is there something i missing here?</p>
  <pre><code>const puppeteer = require('puppeteer');
  
  
  
  (async () =&gt; {
  
  const browser = await puppeteer.launch({
      headless: false, 
     
    });
  
  const page = await browser.newPage();
  
  var url = await page.goto('https://www.amazon.co.uk/s?k=TAKPART+Brass+Diff+Filler+Plug+Kit+Compatible+for+Discovery+2+Td5+%26+V8&amp;crid=SCY3QG71TBS9&amp;sprefix=takpart+brass+diff+filler+plug+kit+compatible+for+discovery+2+td5+%26+v8%2Caps%2C77&amp;ref=nb_sb_noss#');
  
  
  
  
  
  
   const data = await page.evaluate(() =&gt; 
  Array.from(document.querySelectorAll(&quot;.s-main-slot.s-result-list.s-search-results.sg- 
  row&quot;)).map(d =&gt; d.getAttribute(&quot;data-asin&quot;))
  )
  
  
  console.log(data)
  
  
  
  
  })()
  </code></pre>
  <p>Output:
  '',           null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         '',           null,         null, null,
  null,         'B07957YMTG', null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  'B07SJGJVXR', null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         null,         null, null,
  null,         null,         'B07WS9VMX6', null, null,
  null,         null,         null,         null, null,
  ... 673 more items</p>