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
precommit run
mertunsalldbb4222141a8
diff --git a/.cursor/rules/browser-use-rules.mdc b/.cursor/rules/browser-use-rules.mdcindex 235a51455..e24f3c6cd 100644--- a/.cursor/rules/browser-use-rules.mdc+++ b/.cursor/rules/browser-use-rules.mdc@@ -41,6 +41,8 @@ uv sync* ✅ **Type-safe coding**Use **Pydantic v2 models** for all internal action schemas, task inputs/outputs, and controller I/O. This ensures robust validation and LLM-call integrity.+* ✅ **Pre-commit formatting**+ALWAYS make sure to run pre-commit before making PRs.---## ⚙️ Adding New Actionsdiff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex 03943a68b..6b70db342 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -144,7 +144,9 @@ class Controller(Generic[Context]):msg = f'🕒 Waiting for {actual_seconds} seconds'logger.info(msg)await asyncio.sleep(actual_seconds)- return ActionResult(extracted_content=msg, include_in_memory=True, long_term_memory=f'Waited for {actual_seconds} seconds')+ return ActionResult(+ extracted_content=msg, include_in_memory=True, long_term_memory=f'Waited for {actual_seconds} seconds'+ )# Element Interaction Actions