GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Sets puppeteer to wait for networkidle2 event

parent 79257a11
......@@ -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: 'networkidle0'});
await page.goto(url, {waitUntil: 'networkidle2'});
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