Skip to content

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

Fix counter

magmueller689e2e7b30d3
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 5af109c26..93f3758f3 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -496,7 +496,7 @@ class Controller:
)
if not new_path_hashes.issubset(cached_path_hashes):
# next action requires index but there are new elements on the page
- logger.info(f'Something new appeared after action {i + 1} / {len(actions)}')
+ logger.info(f'Something new appeared after action {i } / {len(actions)}')
break
results.append(await self.act(action, browser_context))