diff --git a/dist/controllers/SCController.js b/dist/controllers/SCController.js index 3f7442e..4788da9 100644 --- a/dist/controllers/SCController.js +++ b/dist/controllers/SCController.js @@ -91,6 +91,7 @@ class SCController { const textoNotFound = "Nenhuma multa em aberto cadastrada para este veículo até o momento."; await pageReload.waitForNavigation({ waitUntil: 'networkidle2', timeout: 10000 }); const html = await pageReload.content(); + console.log('html', html); if (html.includes(textoNotFound)) { console.log('Nenhuma multa em aberto cadastrada para este veículo até o momento.'); await pageReload.close(); diff --git a/src/controllers/SCController.ts b/src/controllers/SCController.ts index de90037..8b55c10 100644 --- a/src/controllers/SCController.ts +++ b/src/controllers/SCController.ts @@ -96,10 +96,10 @@ class SCController { const html = await pageReload.content(); - if (html.includes(textoNotFound)) { + console.log('html', html); + if (html.includes(textoNotFound)) { console.log('Nenhuma multa em aberto cadastrada para este veículo até o momento.'); - await pageReload.close(); return { placa, renavam, multas: [], message: 'Nenhuma multa em aberto cadastrada para este veículo até o momento.' }; }