use waitforloadstate

This commit is contained in:
Tommy D. Rossi
2025-12-19 19:09:19 +01:00
parent b0f786a166
commit 5b474087eb
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ async function getCurrentPage(timeout = 5000) {
if (pages.length > 0) {
const page = pages[0]
await page.waitForEvent('load', { timeout }).catch(() => {})
await page.waitForLoadState('load', { timeout }).catch(() => {})
return page
}
}