Repository navigation
Conversation
|
👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days. To keep this PR open:
This will be automatically closed in 14 days if no further activity occurs. Thanks for contributing to browser-use! 🤖 |
b827366 to
a718a41
Compare
|
Rebased onto the latest Verification:
|
|
👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days. To keep this PR open:
This will be automatically closed in 14 days if no further activity occurs. Thanks for contributing to browser-use! 🤖 |
a718a41 to
e44dd6a
Compare
Uses tooltip text and aria-label attributes to identify icon-only buttons that lack visible text content. Adds support for common tooltip data attributes (data-tooltip, data-original-title, data-bs-title, data-title) across detection, serialization, and history replay code paths. Fixes browser-use#4801 Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Oxygen56 <[email protected]>
Signed-off-by: Willow Lopez <[email protected]> Signed-off-by: Oxygen56 <[email protected]>
e44dd6a to
a5496fa
Compare
|
👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days. To keep this PR open:
This will be automatically closed in 14 days if no further activity occurs. Thanks for contributing to browser-use! 🤖 |
Enhances element detection for icon-only buttons using tooltip/aria-label text.
Problem
Icon-only buttons (e.g., a + button with only a tooltip saying "Create Test") were often missed by the browser agent. When a button lacks visible text content and has no aria-label, but has a tooltip (via HTML title attribute or JS tooltip library data attributes), the agent could not reliably identify or describe the element.
Changes
title,data-tooltip,data-original-title,data-bs-title,data-titleto icon detection attributes — small icon-sized elements with tooltip attributes are now detected as interactiveDEFAULT_INCLUDE_ATTRIBUTES(shown to LLM),STATIC_ATTRIBUTES(used for element hashing), andget_meaningful_text_for_llm()priority chainSAFE_ATTRIBUTESfor CSS selector generationtitleto history replay matching attributes and element error formattingtitleanddata-tooltipto click description key attributesFixes #4801
Summary by cubic
Detects icon-only buttons using tooltip and aria-label text so the browser agent stops missing them; supports common tooltip attributes across detection, serialization, selectors, and replay. Fixes #4801.
title,data-tooltip,data-original-title,data-bs-title,data-titleas interactive.titlein element matching and error messages.titleanddata-tooltipto improve action summaries.Written for commit a5496fa. Summary will update on new commits.