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

fix: revise interesting/uninteresting classification for AXNodes #6334

Merged
merged 1 commit into from Aug 14, 2020

Conversation

johanbay
Copy link
Collaborator

Minor changes to the logic for determining if an AXNode is interesting.
We might want to consider skipping this logic altogether and simply rely on CDP's ignored property on AXNodes

@mathiasbynens
Copy link
Member

We might want to consider skipping this logic altogether and simply rely on CDP's ignored property on AXNodes

This sounds good. Until then, I like this smaller, incremental change, so LGTM.

@@ -264,11 +266,7 @@ class AXNode {
private _isPlainTextField(): boolean {
if (this._richlyEditable) return false;
if (this._editable) return true;
return (
this._role === 'textbox' ||
this._role === 'ComboBox' ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what was this 'ComboBox' role and why is it not relevant anymore?

Copy link
Collaborator Author

@johanbay johanbay Aug 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm definitely not very knowledgeable in the area, but from searching around I concluded that there is no such role in the spec. There is a combobox, but I'm not sure we want to categorize those as plain text fields? At least our tests don't want that. I think we should remove the ComboBox for now as it is confusing.

Copy link
Collaborator

@hanselfmu hanselfmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@johanbay johanbay force-pushed the revise-interesting-classification branch from 42d8451 to 880fd0e Compare August 14, 2020 08:12
@johanbay johanbay merged commit 7b24e54 into main Aug 14, 2020
@johanbay johanbay deleted the revise-interesting-classification branch August 14, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants