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); allResults = allResults.concat(finalResults);
return allResults; return allResults;
} }
previousHeight = currentHeight; previousHeight = currentHeight;
break; break;
case 'scrollUp': case 'scrollUp':
await page.evaluate(() => window.scrollUp(config.listSelector, config.limit));
break; break;
case 'clickNext': case 'clickNext':
const nextButton = await page.$(config.pagination.selector); const nextButton = await page.$(config.pagination.selector);