browser-use: Some form elements not being detected for highlighting

Bug Description

Browser use is unable to detect the checkbox element Here is the relevant div

<div class="checkbox">
                          <input type="checkbox" name="agree" value="1" id="checkbox1"><label for="checkbox1">
                            I agree with <a href="rules">Terms and conditions</a></label>
                        </div>

Here is a screenshot of the relevant areas:

Image

Reproduction Steps

Use the latest browser use version, ask the agent to create an account on https://availfinance.online/home/auth/signup.php

The checkbox is not detectable

Code Sample

agent.run("go to https://availfinance.online/home/auth/signup.php, and try to agree to the terms and conditions")

Version

git main branch

LLM Model

Claude 3.5 Sonnet

Operating System

macOS

Relevant Log Output


About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 24 (10 by maintainers)

Most upvoted comments

@abdulhaseeb7603 Reddit is a very different issue related to shadow DOM handling, not <ul>s. We’re already working on shadowDOM improvements elsewhere, lets not mix up this ticket 👍

Ah no wonder, they are trying to use a ul to render a dropdown 🤦

I used custom functions to accept terms.

Interesting.

So you are basically specify the exact function to perform in the prompt in order to help the llm giving the proper indication to the brower.

Thanks, I’ll try.