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
remove unused success parameter from ActionResult in service.py
Magnus Müller1b5593d1aa14
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex fe067a8ba..936a3cac6 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -192,7 +192,7 @@ class Controller(Generic[Context]):msg += f' - {new_tab_msg}'logger.info(new_tab_msg)await browser_session.switch_to_tab(-1)- return ActionResult(extracted_content=msg, include_in_memory=True, success=True)+ return ActionResult(extracted_content=msg, include_in_memory=True)except Exception as e:error_msg = str(e)if 'Execution context was destroyed' in error_msg or 'Cannot find context with specified id' in error_msg: