chroe: addtodo

This commit is contained in:
karishmas6
2024-08-15 21:30:34 +05:30
parent 2ef2b2e814
commit d48f047742

View File

@@ -262,6 +262,7 @@ async function clickNextPagination(selector, scrapedData, limit) {
}; };
/** /**
* TODO: Simplify.
* Given an object with named lists of elements, * Given an object with named lists of elements,
* groups the elements by their distance in the DOM tree. * groups the elements by their distance in the DOM tree.
* @param {Object.<string, {selector: string, tag: string}>} lists The named lists of HTML elements. * @param {Object.<string, {selector: string, tag: string}>} lists The named lists of HTML elements.
@@ -384,7 +385,7 @@ async function clickNextPagination(selector, scrapedData, limit) {
await scrollUpToLoadMore(listSelector, limit); await scrollUpToLoadMore(listSelector, limit);
break; break;
case 'clickNext': case 'clickNext':
await clickNextPagination(pagination.selector); await clickNextPagination(pagination.selector, scrapedData, limit);
break; break;
case 'clickLoadMore': case 'clickLoadMore':
//await clickLoadMorePagination(pagination.selector); //await clickLoadMorePagination(pagination.selector);