I have an array of URLs to scrape data from:

```
urls = ['url','url','url'...]

```

This is what I'm doing:

```
urls.map(async (url)=>{
  await page.goto(url);
  await page.waitForNavigation({ waitUntil: 'networkidle' });
})

```

This seems to not wait for page load and visits all the URLs quite rapidly (I even tried using `page.waitFor`).

I wanted to know if am I doing something fundamentally wrong or this type of functionality is not advised/supported.