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

accessibility: extra querying options for large trees #486

Closed
2 tasks done
phillco opened this issue Feb 15, 2022 · 1 comment
Closed
2 tasks done

accessibility: extra querying options for large trees #486

phillco opened this issue Feb 15, 2022 · 1 comment

Comments

@phillco
Copy link

phillco commented Feb 15, 2022

Some applications have massive accessibility trees (like Notes.app, which exposes every note ever created).

This can make general integrations that do things like "search for AXButtons" time out and hit watchdogs. A few extra parameters to find() would allow them to avoid searching too deeply. This can save us from having to write custom logic for each app.

Allow for find() / find_one() to:

  • Only query for elements that should be visible, based on their position.
  • Set a maximum search time (in seconds) and/or a maximum number of elements to visit
@lunixbochs
Copy link

done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants