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
Scroll element
Magnus Müller680d2551dfbc
diff --git a/browser_use/dom/serializer/serializer.py b/browser_use/dom/serializer/serializer.pyindex 35044e10d..72568c8a8 100644--- a/browser_use/dom/serializer/serializer.py+++ b/browser_use/dom/serializer/serializer.py@@ -977,11 +977,11 @@ class DOMTreeSerializer:if should_show_scroll and not node.is_interactive:# Scrollable container but not clickable- line = f'{depth_str}{shadow_prefix}|SCROLL|<{node.original_node.tag_name}'+ line = f'{depth_str}{shadow_prefix}|scroll element|<{node.original_node.tag_name}'elif node.is_interactive:# Clickable (and possibly scrollable) - show backend_node_idnew_prefix = '*' if node.is_new else ''- scroll_prefix = '|SCROLL[' if should_show_scroll else '['+ scroll_prefix = '|scroll element[' if should_show_scroll else '['line = f'{depth_str}{shadow_prefix}{new_prefix}{scroll_prefix}{node.original_node.backend_node_id}]<{node.original_node.tag_name}'elif node.original_node.tag_name.upper() == 'IFRAME':# Iframe element (not interactive)