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
more logging
mertunsalla2e81f17d704
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 2ce00d81d..c6f44dc5e 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -1453,9 +1453,10 @@ class BrowserSession(BaseModel):async with httpx.AsyncClient() as client:headers = self.browser_profile.headers or {}version_info = await client.get(url, headers=headers)+ self.logger.debug(f'Raw version info: {str(version_info)}')self.browser_profile.cdp_url = version_info.json()['webSocketDebuggerUrl']- assert self.cdp_url is not None+ assert self.cdp_url is not None, 'CDP URL is None.'browser_location = 'local browser' if self.is_local else 'remote browser'self.logger.debug(f'🌎 Connecting to existing chromium-based browser via CDP: {self.cdp_url} -> ({browser_location})')