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
Dom include elements for amazon dropdown
magmueller9af6b1ab7633
diff --git a/browser_use/dom/buildDomTree.js b/browser_use/dom/buildDomTree.jsindex 16f6edb6f..6e1d95b7b 100644--- a/browser_use/dom/buildDomTree.js+++ b/browser_use/dom/buildDomTree.js@@ -150,8 +150,8 @@'button', 'menu', 'menuitem', 'link', 'checkbox', 'radio','slider', 'tab', 'tabpanel', 'textbox', 'combobox', 'grid','listbox', 'option', 'progressbar', 'scrollbar', 'searchbox',- 'switch', 'tree', 'treeitem', 'spinbutton', 'tooltip',- 'menuitemcheckbox', 'menuitemradio'+ 'switch', 'tree', 'treeitem', 'spinbutton', 'tooltip', 'a-button-inner', 'a-dropdown-button', 'click',+ 'menuitemcheckbox', 'menuitemradio', 'a-button-text', 'button-text', 'button-icon', 'button-icon-only', 'button-text-icon-only', 'dropdown', 'combobox']);const tagName = element.tagName.toLowerCase();@@ -163,7 +163,9 @@const hasInteractiveRole = interactiveElements.has(tagName) ||interactiveRoles.has(role) ||interactiveRoles.has(ariaRole) ||- tabIndex === '0';+ (tabIndex !== null && tabIndex !== '-1') ||+ element.getAttribute('data-action') === 'a-dropdown-select' ||+ element.getAttribute('data-action') === 'a-dropdown-button';if (hasInteractiveRole) return true;