- generazione della raccolta PDF OK !!!
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user