Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix logging

Nick Sweetingef0239183e23
diff --git a/browser_use/browser/browser.py b/browser_use/browser/browser.py
index 4bfc02572..63c34907c 100644
--- a/browser_use/browser/browser.py
+++ b/browser_use/browser/browser.py
@@ -36,6 +36,8 @@ IN_DOCKER = os.environ.get('IN_DOCKER', 'false').lower() == 'true'
class ProxySettings(TypedDict, total=False):
+ """the same as playwright.sync_api.ProxySettings, but with typing_extensions.TypedDict so pydantic can validate it"""
+
server: str
bypass: str | None
username: str | None
@@ -167,7 +169,7 @@ class Browser:
# Check if browser is already running
response = requests.get('http://localhost:9222/json/version', timeout=2)
if response.status_code == 200:
- logger.info('Re-using existing browser found running on http://localhost:9222')
+ logger.info('🔌 Re-using existing browser found running on http://localhost:9222')
browser_class = getattr(playwright, self.config.browser_class)
browser = await browser_class.connect_over_cdp(
endpoint_url='http://localhost:9222',