|
|
|
@ -37,7 +37,9 @@ module.exports = {
|
|
|
|
sources = sourcesFromThumbnailGallery;
|
|
|
|
sources = sourcesFromThumbnailGallery;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const descriptionIframe = await page.$('#desc_ifr');
|
|
|
|
const descriptionIframe = await page.$('#desc_ifr');
|
|
|
|
|
|
|
|
console.log('has description iframe?', !!descriptionIframe);
|
|
|
|
const descriptionUrl = await page.evaluate(el => el.getAttribute('src'), descriptionIframe)
|
|
|
|
const descriptionUrl = await page.evaluate(el => el.getAttribute('src'), descriptionIframe)
|
|
|
|
|
|
|
|
console.log('has description URL?', descriptionUrl);
|
|
|
|
await page.goto(descriptionUrl);
|
|
|
|
await page.goto(descriptionUrl);
|
|
|
|
//check the description if it has viewall button
|
|
|
|
//check the description if it has viewall button
|
|
|
|
const hasViewAllButton = !!(await page.$('.thumbnail-list-wrapper > a.cgg-btn:nth-child(6)'))
|
|
|
|
const hasViewAllButton = !!(await page.$('.thumbnail-list-wrapper > a.cgg-btn:nth-child(6)'))
|
|
|
|
|