Merge branch 'main' into fix/browser_cdp

This commit is contained in:
Wendong-Fan 2025-08-16 05:03:35 +08:00 committed by GitHub
commit 5ff8745797
22 changed files with 433 additions and 93 deletions

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: