fix: revise Electron page exhaustion alert

This commit is contained in:
sw3205933776 2025-08-15 14:28:46 +08:00
parent 2a6a79fbbc
commit bd6246d56c

View file

@ -83,7 +83,7 @@ class BrowserSession(BaseHybridBrowserSession):
await self.get_new_tab()
logger.debug(json.dumps([item.url for item in self._context.pages]))
if not self._page:
raise ProgramException("Electron does't has page")
raise ProgramException("Maximum Window Limit Reached.")
# Apply stealth modifications if enabled
if self._stealth and self._stealth_script: