- aggiornato carrello e bottoni sul catalogo
This commit is contained in:
@@ -48,7 +48,7 @@ class GenPdf {
|
||||
}
|
||||
|
||||
async autoScroll(page) {
|
||||
console.log('inizia a scrollare');
|
||||
console.log('inizia a scrollare...');
|
||||
|
||||
// Esegui lo scroll fino a quando tutta la pagina non è stata scrollata
|
||||
await page.evaluate(async () => {
|
||||
@@ -97,9 +97,11 @@ class GenPdf {
|
||||
await tools.attendiNSecondi(6);
|
||||
let success = false;
|
||||
let numTentativi1 = 0;
|
||||
console.log(`Cerco .pdf-section...`);
|
||||
while (numTentativi1 < maxTentativi) {
|
||||
try {
|
||||
await page.waitForSelector('.pdf-section', { timeout: 10000 });
|
||||
console.log(` .pdf-section trovato !...`);
|
||||
success = true;
|
||||
break;
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user