title: Scraping Amazon Brand Page
body: <p>For training purposes, trying to scrape prices of the following page</p>
  
  <p><a href="https://www.amazon.fr/s?i=watches&amp;bbn=60649031&amp;rh=n%3A60649031%2Cp_89%3AICE-Watch&amp;dc&amp;fst=as%3Aoff&amp;qid=1584806397&amp;rnid=1680780031&amp;ref=sr_pg_1" rel="nofollow noreferrer">https://www.amazon.fr/s?i=watches&amp;bbn=60649031&amp;rh=n%3A60649031%2Cp_89%3AICE-Watch&amp;dc&amp;fst=as%3Aoff&amp;qid=1584806397&amp;rnid=1680780031&amp;ref=sr_pg_1</a></p>
  
  <p>Using Puppeteer, here is the part of selector code inside evaluate:</p>
  
  <pre><code>        const result = await page.evaluate(() =&gt;{
          return [...document.querySelectorAll('.sg-col-inner')].map(o =&gt; {
              return {
                brand: o.querySelector('.a-size-base-plus.a-color-base').innerText,
                title: o.querySelector('.a-size-base-plus.a-color-base.a-text-normal').innerText,
                price: o.querySelector('.a-price-whole').innerText,
                url: o.querySelector('.a-link-normal.a-text-normal').href,
              };
            });
        });
  </code></pre>
  
  <p>brand, title, and url are working properly and return data, while price remains undefined.</p>
  
  <p>Error message:</p>
  
  <pre><code>error happened Error: Evaluation failed: TypeError: Cannot read property 'innerText' of null
  </code></pre>
  
  <p>Any idea?</p>