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
allow proceeding without pid
Nick Sweeting13142831a2f0
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex e295dc503..eb168e23d 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -1079,9 +1079,13 @@ class BrowserSession(BaseModel):if not new_child_procs:self.logger.debug(f'❌ Failed to find any new child chrome processes after launching new browser: {new_child_pids}')new_chrome_proc = None+ # Browser PID detection can fail in some environments (e.g. CI, containers)+ # This is not critical - the browser is still running and usable+ self.browser_pid = Noneelif len(new_child_procs) > 1:self.logger.debug(f'❌ Found multiple new child chrome processes after launching new browser: {new_child_procs}')new_chrome_proc = None+ self.browser_pid = Noneelse:new_chrome_proc = new_child_procs[0]