Commit a78d1121 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Sets puppeteer to wait for networkidle0 event

parent 38567a58
......@@ -41,7 +41,7 @@ async function asyncForEach(array, callback) {
for (let i = 0; i < urls.length; i++) {
const url = urls[i];
await page.goto(url, {waitUntil: 'networkidle2'});
await page.goto(url, {waitUntil: 'networkidle0'});
console.log('navigated to', url);
const urlSeparated = url.split('/');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment