fix: dont call window.scrollUp() from browser side

This commit is contained in:
karishmas6
2024-08-18 22:47:14 +05:30
parent 997a466f30
commit 47f5726619

View File

@@ -387,11 +387,11 @@ export default class Interpreter extends EventEmitter {
allResults = allResults.concat(finalResults);
return allResults;
}
previousHeight = currentHeight;
break;
case 'scrollUp':
await page.evaluate(() => window.scrollUp(config.listSelector, config.limit));
break;
case 'clickNext':
const nextButton = await page.$(config.pagination.selector);