Skip to content

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

Remove print selector map

magmuellerf73c69de29fc
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 222ae0eec..c40f51b94 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -71,7 +71,6 @@ class Controller:
state = session.cached_state
if params.index not in state.selector_map:
- print(state.selector_map)
raise Exception(
f'Element with index {params.index} does not exist - retry or use alternative actions'
)