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
style: remove trailing whitespace
zhongzhenyub1fad345d613
diff --git a/browser_use/browser/watchdogs/default_action_watchdog.py b/browser_use/browser/watchdogs/default_action_watchdog.pyindex 110562b68..890ac1f88 100644--- a/browser_use/browser/watchdogs/default_action_watchdog.py+++ b/browser_use/browser/watchdogs/default_action_watchdog.py@@ -1568,7 +1568,7 @@ class DefaultActionWatchdog(BaseWatchdog):)if _is_draftjs and len(text) > 0 and clear:- # Prepend a space as "sacrifice character" - it will be dropped by Draft.js+ # Prepend a space as "sacrifice character" - it will be dropped by Draft.js# Only when clear=True (cursor at leaf start), otherwise Draft.js won't drop ittext = ' ' + textself.logger.debug('🎯 Draft.js detected, prepending sacrifice space')