From 2d0e945abe71291d446e64753ae4e8dde156460b Mon Sep 17 00:00:00 2001 From: Rohit Date: Thu, 3 Apr 2025 20:08:27 +0530 Subject: [PATCH] feat: rm page timeout for pagination --- maxun-core/src/interpret.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 94ec4f1d..53b999fa 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -663,10 +663,7 @@ export default class Interpreter extends EventEmitter { let availableSelectors = config.pagination.selector.split(','); try { - while (true) { - // Reduced timeout for faster performance - await page.waitForLoadState('networkidle', { timeout: 10000 }).catch(() => {}); - + while (true) { switch (config.pagination.type) { case 'scrollDown': { await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));