Skip to content

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

Merge branch 'main' into mcp-server

Nick Sweeting302a69775a87
diff --cc browser_use/browser/session.py
index 329393c24,12cabd971..54b4e8bd6
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@@ -1673,9 -1683,9 +1683,10 @@@ class BrowserSession(BaseModel)
page = await self.get_current_page()
await page.wait_for_selector(selector, state='visible', timeout=timeout)
+ @observe_debug(name='remove_highlights', ignore_output=True, ignore_input=True)
@require_initialization
@time_execution_async('--remove_highlights')
+ @retry(timeout=5, retries=0)
async def remove_highlights(self):
"""
Removes all highlight overlays and labels created by the highlightElement function.