Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix scroll to text action bug
mertunsall6d30f36ee711
diff --git a/browser_use/browser/watchdogs/default_action_watchdog.py b/browser_use/browser/watchdogs/default_action_watchdog.pyindex a71f414a1..ac0e3e0f8 100644--- a/browser_use/browser/watchdogs/default_action_watchdog.py+++ b/browser_use/browser/watchdogs/default_action_watchdog.py@@ -1808,12 +1808,12 @@ class DefaultActionWatchdog(BaseWatchdog):session_id=session_id,)- if js_result.get('result', {}).get('value'):- self.logger.debug(f'📜 Scrolled to text: "{event.text}" (via JS)')- return None- else:- self.logger.warning(f'⚠️ Text not found: "{event.text}"')- raise BrowserError(f'Text not found: "{event.text}"', details={'text': event.text})+ if js_result.get('result', {}).get('value'):+ self.logger.debug(f'📜 Scrolled to text: "{event.text}" (via JS)')+ return None+ else:+ self.logger.warning(f'⚠️ Text not found: "{event.text}"')+ raise BrowserError(f'Text not found: "{event.text}"', details={'text': event.text})# If we got here and found is True, return None (success)if found: