From 8b9893f68fb11984d81377bd7aca997b82020c55 Mon Sep 17 00:00:00 2001 From: RohitR311 Date: Fri, 9 May 2025 23:37:20 +0530 Subject: [PATCH] feat: add timeout after navigation success --- maxun-core/src/interpret.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 69dd3127..19b97707 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -825,6 +825,7 @@ export default class Interpreter extends EventEmitter { button.click() ]); debugLog("Navigation successful after regular click"); + await page.waitForTimeout(2000); paginationSuccess = true; } catch (navError) { debugLog("Regular click with navigation failed, trying dispatch event with navigation"); @@ -839,6 +840,7 @@ export default class Interpreter extends EventEmitter { button.dispatchEvent('click') ]); debugLog("Navigation successful after dispatch event"); + await page.waitForTimeout(2000); paginationSuccess = true; } catch (dispatchNavError) { try {