- generazione della raccolta PDF OK !!!

This commit is contained in:
Surya Paolo
2025-05-30 16:45:01 +02:00
parent f0c25366db
commit 3d6455f23c
6 changed files with 1653 additions and 1528 deletions

View File

@@ -86,6 +86,7 @@ class GenPdf {
try {
console.log(`caricamento pagina: ${url}`);
await page.goto(url, { waitUntil: 'networkidle0' });
await page.waitForNavigation({ waitUntil: 'networkidle0' }).catch(() => {});
page.on('console', (msg) => {
if (msg.type() === 'error') {
@@ -93,7 +94,7 @@ class GenPdf {
}
});
await tools.attendiNSecondi(8);
await tools.attendiNSecondi(6);
let success = false;
let numTentativi1 = 0;
while (numTentativi1 < maxTentativi) {