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
hot-fix-local-true-if-no-cdp-url
Magnus Müller11a50db4fb9b
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 15dd31200..9c0b180f7 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -274,6 +274,8 @@ class BrowserSession(BaseModel):# if is_local is False but executable_path is provided, set is_local to Trueif is_local is False and executable_path is not None:profile_kwargs['is_local'] = True+ if not cdp_url:+ profile_kwargs['is_local'] = True# Create browser profile from direct parameters or use provided oneif browser_profile is not None: