Improved logging message

This commit is contained in:
JakubDrobnik 2018-11-20 15:00:37 +01:00
parent 4339f7ae56
commit e4ff7ec417

View File

@ -22,7 +22,7 @@ const enqueueAllUrlsFromPagination = async (page, requestQueue) => {
await page.waitForSelector('.section-back-to-list-button'); await page.waitForSelector('.section-back-to-list-button');
const url = page.url(); const url = page.url();
await requestQueue.addRequest({ url, userData: { label: 'detail' } }); await requestQueue.addRequest({ url, userData: { label: 'detail' } });
console.log(`${url} added to queue.`); console.log(`Added to queue ${url}`);
await page.click('.section-back-to-list-button'); await page.click('.section-back-to-list-button');
await sleep(5000); await sleep(5000);
} }