Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix: wrap Page.enable in try/except (not supported on root CDP client)
ShawnPanaa2bcc1a3f92a
diff --git a/browser_use/skill_cli/browser.py b/browser_use/skill_cli/browser.pyindex 337aa0fd0..8c14d2eeb 100644--- a/browser_use/skill_cli/browser.py+++ b/browser_use/skill_cli/browser.py@@ -90,7 +90,11 @@ class CLIBrowserSession(BrowserSession):except Exception:pass- await self._cdp_client_root.send.Page.enable()+ # Try to enable Page domain on root client (may fail — not all CDP targets support it)+ try:+ await self._cdp_client_root.send.Page.enable()+ except Exception:+ passself._cdp_client_root.register.Page.javascriptDialogOpening(handle_dialog) # type: ignore[arg-type]async def _launch_local_browser(self) -> None: