pixiebrix-extension
pixiebrix-extension copied to clipboard
Consider role-like attributes in addition to class when inferring expanded selector
Context
- commonCssSelector currently uses classnames to expand the selection
- There are other attributes that correlate with the role of the element we should consider
Attributes/Properties to consider
- class
- aria-role
- tagName
- type attribute
- Same caption/Same text (of selected elements)