xxxxxxxxxx
//Helper function
async function asyncForEach (array, callback) {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
};
//usage
await asyncForEach( data, async d => {
await page.goto(d);
});