title: Crawling multiple URLs in a loop using Puppeteer
body: <p>I have an array of URLs to scrape data from:</p>
  <pre><code>urls = ['url','url','url'...]
  </code></pre>
  <p>This is what I'm doing:</p>
  <pre><code>urls.map(async (url)=&gt;{
    await page.goto(url);
    await page.waitForNavigation({ waitUntil: 'networkidle' });
  })
  </code></pre>
  <p>This seems to not wait for page load and visits all the URLs quite rapidly (I even tried using <code>page.waitFor</code>).</p>
  <p>I wanted to know if am I doing something fundamentally wrong or this type of functionality is not advised/supported.</p>