diff --git a/iterateOverDashboardTable.js b/iterateOverDashboardTable.js index 81097dd..7eec2e1 100644 --- a/iterateOverDashboardTable.js +++ b/iterateOverDashboardTable.js @@ -76,7 +76,11 @@ async function iterateOverDashboardTable() { `${tableBodySelector} tr span[title="AA-rapport"] a` ); - if ((i + 1) % 10 === 0) {await wait(10000)} + if ((i + 1) % 10 === 0) { + console.log('Simulating break, waiting 10 seconds to stay under the radar :)') + await wait(10000) + + } const [newPagePromise] = await Promise.all([ new Promise((resolve) => @@ -115,6 +119,7 @@ async function iterateOverDashboardTable() { IsCollapsed: "Error", IsCollapsedKeuze: "Error", IsCollapsedMain: "Error", + ErrorStr: error.message, }); } finally {