Feature: Improved handling of wait times for page checks and reloads, using a 10s timeout for slower networks

This commit is contained in:
2025-11-13 14:37:17 +01:00
parent 9f56227608
commit 2959fc8c73
4 changed files with 20 additions and 11 deletions

View File

@@ -209,6 +209,7 @@ export default class BrowserUtil {
this.bot.log(this.bot.isMobile, 'RELOAD-BAD-PAGE', `Bad page detected (${errorType}), reloading!`)
await page.reload({ waitUntil: 'domcontentloaded' })
// IMPROVED: Use smart wait instead of fixed 1500ms delay
// FIXED: Use default 10s timeout for page reload
await waitForPageReady(page)
}