Answers for "puppeter loop"

-1

puppeter loop

const urls = [...]

for (let i = 0; i < urls.length; i++) {
    const url = urls[i];
    await page.goto(`${url}`);
    await page.waitForNavigation({ waitUntil: 'networkidle2' });
}
Posted by: Guest on June-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language