Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookup interactive elements with CSS #110

Open
mondaychen opened this issue Apr 9, 2024 · 0 comments
Open

lookup interactive elements with CSS #110

mondaychen opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request limitations Known limitation of the system

Comments

@mondaychen
Copy link
Contributor

Currently, we query interactive elements using HTML semantics. There are some websites that do not always follow the rules. For example, I've seen this kind of button

<div class="btn_primary inline-flex cursor-pointer items-center gap-1 text-center font-semibold">New Job</div> New Job

They are currently ignored by WebWand.

However, if we traverse the entire DOM, we can find these elements by checking whether the CSS style has cursor: pointer, and assume it is also interactive.

Depending on the website, this might get more things done, but this can also sometimes mark some unwanted things as interactive and confuse the agent.

We might make this an option in settings, or allow as part of per-website rule

@mondaychen mondaychen added enhancement New feature or request limitations Known limitation of the system labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request limitations Known limitation of the system
Projects
None yet
Development

No branches or pull requests

1 participant