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
Add button class to click
magmueller9407ec3b6887
diff --git a/browser_use/dom/buildDomTree.js b/browser_use/dom/buildDomTree.jsindex b68bc82d5..db1ffc290 100644--- a/browser_use/dom/buildDomTree.js+++ b/browser_use/dom/buildDomTree.js@@ -147,7 +147,7 @@'button', 'menu', 'menuitem', 'link', 'checkbox', 'radio','slider', 'tab', 'tabpanel', 'textbox', 'combobox', 'grid','listbox', 'option', 'progressbar', 'scrollbar', 'searchbox',- 'switch', 'tree', 'treeitem', 'spinbutton', 'tooltip', 'a-button-inner', 'a-dropdown-button', 'click',+ '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']);@@ -156,8 +156,12 @@const ariaRole = element.getAttribute('aria-role');const tabIndex = element.getAttribute('tabindex');+ // Add check for specific class+ const hasAddressInputClass = element.classList.contains('address-input__container__input');+// Basic role/attribute checks- const hasInteractiveRole = interactiveElements.has(tagName) ||+ const hasInteractiveRole = hasAddressInputClass ||+ interactiveElements.has(tagName) ||interactiveRoles.has(role) ||interactiveRoles.has(ariaRole) ||(tabIndex !== null && tabIndex !== '-1') ||