use waitforloadstate
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user