Skip to content

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

Update browser_use/dom/debug/highlights.py

Magnus Müllerecbf1ba7a971
diff --git a/browser_use/dom/debug/highlights.py b/browser_use/dom/debug/highlights.py
index 33beba22e..b712d0596 100644
--- a/browser_use/dom/debug/highlights.py
+++ b/browser_use/dom/debug/highlights.py
@@ -87,7 +87,7 @@ async def remove_highlighting_script(dom_service: DomService) -> None:
)
except Exception as e:
- traceback.logger.debug_exc()
+ logger.exception(f'Error removing highlighting elements: {e}', exc_info=True)
async def inject_highlighting_script(dom_service: DomService, interactive_elements: DOMSelectorMap) -> None: