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

Elements that don't have visible text labels #150

Open
alex35mil opened this issue May 15, 2024 · 4 comments
Open

Elements that don't have visible text labels #150

alex35mil opened this issue May 15, 2024 · 4 comments

Comments

@alex35mil
Copy link

It's quite challenging dealing with icons and other elements that don't have visible text labels.

Suggestion: detect if an element doesn't have a visible text label, and if it's the case - add a label above the element with either accessibility text attached to the element or randomly generated characters if the element doesn't have anything.

@godbout
Copy link
Owner

godbout commented May 16, 2024

first think to make sure if case you don't know, you can search by Element types and more and use The Inspector to see what terms would highlight the Element.

Screen.Recording.2024-05-16.at.15.50.52.mov

that being said, more in the next comment.

@godbout
Copy link
Owner

godbout commented May 16, 2024

It's quite challenging dealing with icons and other elements that don't have visible text labels.

Suggestion: detect if an element doesn't have a visible text label, and if it's the case - add a label above the element with either accessibility text attached to the element or randomly generated characters if the element doesn't have anything.

is this more of an issue with webpages and/or Electron apps? the current issue is that Wooshy does some magic to wrap all the data and make it available through The Input. because the web and Electron apps are the Wild Wild West. they don't respect anything. so you can't check whether the AX "Title" is empty, because maybe what they're showing is actually the "Help", or "Description", or some other random field they've decided to use. the only thing we would be able to know for certain is if they haven't filled any data and everything is empty. if they've filled at least one field, we can't be sure whether it's the one shown or not on the browser.

but i haven't dug more in a while. personally or 1) i'm use to the page and i know what to look for 2) or it's a new page and i just go with what i think would work and most of the time it does lol

so lemme know specifically where you're having those issues so that i can think of a better solution than the current one. thanks.

@alex35mil
Copy link
Author

It's the web most of the time. Sometimes icons don't have any attributes, sometimes it's hard to guess the text, and sometimes there are many repetitive controls, like in long lists, so it would be much easier to have a unique random label to jump to the control I need rather than tab my way through all of them.

@godbout
Copy link
Owner

godbout commented May 21, 2024

It's the web most of the time. Sometimes icons don't have any attributes, sometimes it's hard to guess the text, and sometimes there are many repetitive controls, like in long lists, so it would be much easier to have a unique random label to jump to the control I need rather than tab my way through all of them.

yeah, i'm having the issue currently with a site that doesn't fill its AX attribute properly, so i have to go through the list of Targets:

Screen.Recording.2024-05-21.at.14.57.16.mov

but you don't need to press any key several times. if you hold it then Wooshy speeds through the Targets. that works well with me because i'd still rather type something, and use j/k to go through the Targets, coz i'm a Vim and habits junkie.

if this is not good enough for you tho, seems you may prefer using Labels through other apps like Shortcat, Vimac or Homerow: https://github.com/godbout/Wooshy.docs?tab=readme-ov-file#alternatives-to-wooshy

there's requests for a Label mode in Wooshy, and i've reopened the relevant issue, but the current chance to have this happen is like not even 10%: #146

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