Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Merge pull request #40 from BedroomDev:main

Gregor Žuničb48f94e3943f
diff --cc browser_use/agent/service.py
index bc8807860,9814040b6..f40142b72
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@@ -120,9 -120,11 +120,11 @@@ class Agent
try:
model_output = await self.get_next_action(state)
- result = self.controller.act(model_output.action)
+ result = await self.controller.act(model_output.action)
if result.extracted_content:
logger.info(f'📄 Result: {result.extracted_content}')
+ if result.is_done:
+ logger.result(f'{result.extracted_content}')
self.consecutive_failures = 0
except Exception as e: