Skip to content

browser-use fails to identify/click icon-only "Create Test" button when tooltip is present but accessible label is missing #4801

Open

Description

@BBiswa123

Browser Use Version

0.12.5

LLM Model

azure/gpt-4.1-mini

Screenshots, Description, and task prompt given to Agent

Image

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.

Task prompt given to agent
Step 1: Navigate to https://10.10.10.115:4444/UnifiedDashboard/#/login
Step 2: Enter valid username-cavisson and password-@dmin and submit the login form
Step 3: Click on the 'Functional' button/tab in the dashboard
Step 4: Click on the 'Create Test' button
Step 5: Select the protocol option 'API Test'
Step 6: Verify the request URL field
Expected behavior

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:

<button aria-label="Create Test" title="Create Test">
  +
</button>

or:

<button aria-label="Add" title="Create Test">
  +
</button>

Preferred:

<button aria-label="Create Test" title="Create Test">

Operating System & Browser Versions

linux

Python Code Sample

Full DEBUG Log Output

Activity

  1. added
    bug
    on May 8, 2026
  2. aaronlab commented on May 10, 2026

    @aaronlab

    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.

  3. PHclaw commented on May 11, 2026

    @PHclaw

    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 identification
    async def get_tooltip_element(page, text):
        element = await page.query_selector(f'[title*="{text}"]')
        if element:
            return element
        # For buttons with title on hover
        candidates = await page.query_selector_all('button')
        for el in candidates:
            title = await el.get_attribute('title')
            if title and text.lower() in title.lower():
                return el
        return None

    Or use get_by_title:

    element = await page.get_by_title('Create Test', priority='title')
    if element:
        await element.click()

    This allows the agent to identify icon-only buttons by their tooltip text.

  4. aaronlab commented on May 11, 2026

    @aaronlab

    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:

    await page.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.

  5. Raidriar7170 commented on May 25, 2026

    @Raidriar7170

    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:

    1. Florence-2 (Microsoft's vision foundation model) performs OCR + Dense Region Caption on the screenshot, identifying UI elements that DOM misses
    2. Set-of-Mark (SoM) annotates the screenshot with numbered labels on interactive elements, giving the LLM precise visual indices
    3. 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

    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.

  6. IgorGanapolsky commented on Jul 22, 2026

    @IgorGanapolsky

    Reliability note

    Production automation failures usually reduce to a contract issue before a model/prompt issue:

    1. Success criteria — durable artifact id (message/booking/row), not only node green
    2. Side-effect before complete — never blind-retry without an idempotency key on the business object
    3. Tool vs path split — external action can succeed while the node/agent path still errors (silent-green / false-red)

    If you have one failing execution + expected vs actual, reply with stack/version and I will send a free root-cause checklist.

  7. added a commit that references this issue on Aug 1, 2026
    9c1a400
  8. added a commit that references this issue on Sep 21, 2026
    97ae342
  9. added a commit that references this issue on Oct 8, 2026
    0fe0796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions