You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
browser-use fails to identify/click icon-only "Create Test" button when tooltip is present but accessible label is missing #4801
Screenshots, Description, and task prompt given to Agent
Description
While running browser-use automation on the Cavisson UI, the agent successfully logs in and navigates to the Functional tab, but it is unable to reliably identify and click the Create Test button.
The Create Test control is an icon-only plus (+) button in the Functional page toolbar. When hovering over the icon, the UI shows a tooltip with text:
Create Test
However, the button itself does not appear to expose a stable accessible name such as:
aria-label="Add"
or
aria-label="Create Test"
Because the button is icon-only and the visible text exists only as a tooltip, browser-use struggles to locate it by text. In previous runs, the agent searched for Create Test, found no direct text match, and clicked an incorrect generic toolbar button instead.
After navigating to the Functional page, browser-use should identify and click the Create Test plus icon button.
The target button is visible in the toolbar near the search field. On hover, the tooltip displays:
Create Test
Actual behavior
browser-use does not reliably identify the Create Test button by the tooltip text. It may fail to find Create Test in the page text or may click another nearby generic icon/button.
Screenshot reference
The screenshot shows the Functional page toolbar. The Create Test button is the plus (+) icon next to the search box, and the tooltip text Create Test appears on hover.
Suspected cause
The Create Test button is an icon-only control. The tooltip text is visible only on hover and may not be available in the accessibility tree or DOM text when browser-use scans the page.
Because the button lacks a stable accessible label, browser-use cannot confidently map the instruction:
Click on the 'Create Test' button
to the correct UI element.
HTML around where it's failing
Suggested fix / recommendation
Add an accessible label to the icon button, for example:
<buttonaria-label="Create Test" title="Create Test">
+
</button>
or:
<buttonaria-label="Add" title="Create Test">
+
</button>
Preferred:
<buttonaria-label="Create Test" title="Create Test">
This looks like a good example of a visible-target vs accessible-target mismatch. The screenshot proves the plus icon is visible, but the agent likely ranks candidates from DOM/accessibility metadata, and hover-only tooltip text often is not present until hover and may not be associated with the button.
For a maintainer-actionable repro, I would include:
the actual button HTML; the current fenced block appears to contain only the suggested fix, not the live markup
an accessibility snapshot or Playwright locator output for the toolbar before hover and after hover
the bounding boxes for the plus button, nearby toolbar buttons, and the element that was actually clicked
whether the tooltip node appears in the DOM only after hover, and whether it has aria-describedby pointing back to the button
The app-side fix you proposed is the right one: put aria-label="Create Test" on the real button. If the app cannot change yet, a temporary prompt workaround is to identify it structurally, for example "click the plus icon immediately next to the search field in the Functional toolbar", or use a deterministic selector/action for that step instead of relying on text.
For browser-use itself, a useful debug artifact would be "candidate elements around chosen click" with role/name/bbox/source text. That would make it clear whether this failed because the accessible name was missing, or because candidate ranking picked the wrong icon. Disclosure: I maintain BrowserTrace, and this is one of the failure modes I am trying to make easier to diagnose, but the evidence above is tool-agnostic.
This is a common accessibility issue with icon-only buttons that lack stable ARIA labels.
Suggested fix: Use the element's title attribute as a fallback for identification.
# Get the title attribute for element identificationasyncdefget_tooltip_element(page, text):
element=awaitpage.query_selector(f'[title*="{text}"]')
ifelement:
returnelement# For buttons with title on hovercandidates=awaitpage.query_selector_all('button')
forelincandidates:
title=awaitel.get_attribute('title')
iftitleandtext.lower() intitle.lower():
returnelreturnNone
Small Playwright API correction on the workaround above: get_by_title() does not take a priority argument. If the real element has a stable title="Create Test", the direct Playwright form would be closer to:
awaitpage.get_by_title("Create Test").click()
or, if there are multiple title matches, scope it to the toolbar/search area first.
I would still treat title as a workaround rather than the durable fix. For an icon-only button, the more reliable app-side fix is to put the accessible name on the actual clickable element, e.g. aria-label="Create Test", and then confirm via an accessibility snapshot that the button has role button and name Create Test before running the agent again.
I built a vision enhancement plugin that addresses this exact problem — icon-only buttons with missing accessible labels.
Approach
Instead of relying solely on DOM/ARIA metadata, the plugin adds a visual grounding layer:
Florence-2 (Microsoft's vision foundation model) performs OCR + Dense Region Caption on the screenshot, identifying UI elements that DOM misses
Set-of-Mark (SoM) annotates the screenshot with numbered labels on interactive elements, giving the LLM precise visual indices
Adaptive Strategy evaluates DOM confidence — only invokes vision when DOM info is insufficient (e.g., icon-only buttons), saving ~50% GPU overhead on well-structured pages
Results
Tested on a real-world benchmark with 6 tasks across icon-heavy / mixed / DOM-rich websites:
Mode
Success Rate
Baseline (DOM-only)
4/6 (67%)
Vision-enhanced
6/6 (100%)
On an icon-only music player (similar to the Create Test button scenario), the baseline agent times out after 29+ steps, while the vision-enhanced agent completes in 2 steps.
Architecture
Zero upstream modification — VisionEnhancedAgent inherits from Agent, only overrides _prepare_context
Pluggable backend interface (VisualGroundingBackend) — can swap Florence-2 for GroundingDINO, OmniParser, etc.
Graceful degradation — falls back to vanilla Agent if vision service is unavailable
Would be happy to discuss integration as an optional plugin if the maintainers are interested. I've also opened a separate RFC issue to discuss the architecture in more detail.
Activity
aaronlab commentedon May 10, 2026
This looks like a good example of a visible-target vs accessible-target mismatch. The screenshot proves the plus icon is visible, but the agent likely ranks candidates from DOM/accessibility metadata, and hover-only tooltip text often is not present until hover and may not be associated with the button.
For a maintainer-actionable repro, I would include:
aria-describedbypointing back to the buttonThe app-side fix you proposed is the right one: put
aria-label="Create Test"on the real button. If the app cannot change yet, a temporary prompt workaround is to identify it structurally, for example "click the plus icon immediately next to the search field in the Functional toolbar", or use a deterministic selector/action for that step instead of relying on text.For browser-use itself, a useful debug artifact would be "candidate elements around chosen click" with role/name/bbox/source text. That would make it clear whether this failed because the accessible name was missing, or because candidate ranking picked the wrong icon. Disclosure: I maintain BrowserTrace, and this is one of the failure modes I am trying to make easier to diagnose, but the evidence above is tool-agnostic.
PHclaw commentedon May 11, 2026
This is a common accessibility issue with icon-only buttons that lack stable ARIA labels.
Suggested fix: Use the element's
titleattribute as a fallback for identification.Or use get_by_title:
This allows the agent to identify icon-only buttons by their tooltip text.
aaronlab commentedon May 11, 2026
Small Playwright API correction on the workaround above:
get_by_title()does not take apriorityargument. If the real element has a stabletitle="Create Test", the direct Playwright form would be closer to:or, if there are multiple title matches, scope it to the toolbar/search area first.
I would still treat
titleas a workaround rather than the durable fix. For an icon-only button, the more reliable app-side fix is to put the accessible name on the actual clickable element, e.g.aria-label="Create Test", and then confirm via an accessibility snapshot that the button has rolebuttonand nameCreate Testbefore running the agent again.Raidriar7170 commentedon May 25, 2026
I built a vision enhancement plugin that addresses this exact problem — icon-only buttons with missing accessible labels.
Approach
Instead of relying solely on DOM/ARIA metadata, the plugin adds a visual grounding layer:
Results
Tested on a real-world benchmark with 6 tasks across icon-heavy / mixed / DOM-rich websites:
On an icon-only music player (similar to the Create Test button scenario), the baseline agent times out after 29+ steps, while the vision-enhanced agent completes in 2 steps.
Architecture
VisionEnhancedAgentinherits fromAgent, only overrides_prepare_contextVisualGroundingBackend) — can swap Florence-2 for GroundingDINO, OmniParser, etc.Repo: https://github.com/Raidriar7170/browser-use-vision
Would be happy to discuss integration as an optional plugin if the maintainers are interested. I've also opened a separate RFC issue to discuss the architecture in more detail.
IgorGanapolsky commentedon Jul 22, 2026
Reliability note
Production automation failures usually reduce to a contract issue before a model/prompt issue:
If you have one failing execution + expected vs actual, reply with stack/version and I will send a free root-cause checklist.
fix: improve icon-only button detection using tooltips and aria-labels
fix: improve icon-only button detection using tooltips and aria-labels
fix: improve icon-only button detection using tooltips and aria-labels