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
added option to interactive elements
Prakhar Jaine9e19f785de6
diff --git a/browser_use/dom/serializer/serializer.py b/browser_use/dom/serializer/serializer.pyindex 1a515379d..e57cee5fc 100644--- a/browser_use/dom/serializer/serializer.py+++ b/browser_use/dom/serializer/serializer.py@@ -677,7 +677,7 @@ class DOMTreeSerializer:# 5. Keep if has role suggesting interactivityif node.original_node.attributes:role = node.original_node.attributes.get('role')- if role in ['button', 'link', 'checkbox', 'radio', 'tab', 'menuitem']:+ if role in ['button', 'link', 'checkbox', 'radio', 'tab', 'menuitem', 'option']:return False# Default: exclude this child