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
always copy pid
Nick Sweeting584a68cb89b3
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex eb168e23d..b1e72a6c7 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -484,6 +484,7 @@ class BrowserSession(BaseModel):copy.browser_context = self.browser_contextcopy.agent_current_page = self.agent_current_pagecopy.human_current_page = self.human_current_page+ copy.browser_pid = self.browser_pidreturn copy