pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Consider role-like attributes in addition to class when inferring expanded selector

Open twschiller opened this issue 3 years ago • 0 comments

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)

twschiller avatar Oct 19 '22 23:10 twschiller