From 98c2d2fe11bdf2b0f3caf811cbf9f2d99abce1a3 Mon Sep 17 00:00:00 2001 From: cubemaster21 Date: Fri, 17 Feb 2023 11:29:55 -0500 Subject: [PATCH] Update 'processors/ebay.processor.js' --- processors/ebay.processor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/processors/ebay.processor.js b/processors/ebay.processor.js index 29ab417..7e43a29 100644 --- a/processors/ebay.processor.js +++ b/processors/ebay.processor.js @@ -37,7 +37,9 @@ module.exports = { sources = sourcesFromThumbnailGallery; } const descriptionIframe = await page.$('#desc_ifr'); + console.log('has description iframe?', !!descriptionIframe); const descriptionUrl = await page.evaluate(el => el.getAttribute('src'), descriptionIframe) + console.log('has description URL?', descriptionUrl); await page.goto(descriptionUrl); //check the description if it has viewall button const hasViewAllButton = !!(await page.$('.thumbnail-list-wrapper > a.cgg-btn:nth-child(6)'))