Skip to content

Commit 8b9893f

Browse files
committed
feat: add timeout after navigation success
1 parent d9ac918 commit 8b9893f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maxun-core/src/interpret.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ export default class Interpreter extends EventEmitter {
825825
button.click()
826826
]);
827827
debugLog("Navigation successful after regular click");
828+
await page.waitForTimeout(2000);
828829
paginationSuccess = true;
829830
} catch (navError) {
830831
debugLog("Regular click with navigation failed, trying dispatch event with navigation");
@@ -839,6 +840,7 @@ export default class Interpreter extends EventEmitter {
839840
button.dispatchEvent('click')
840841
]);
841842
debugLog("Navigation successful after dispatch event");
843+
await page.waitForTimeout(2000);
842844
paginationSuccess = true;
843845
} catch (dispatchNavError) {
844846
try {

0 commit comments

Comments
 (0)