w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Do not compute accessible role and name for non-Element nodes in the accessibility locator #702

Closed OrKoN closed 1 month ago

OrKoN commented 2 months ago

This PR updates the accessibility locator algorithm to avoid getting accessible name and role on non-element nodes while allowing to descend into non-element nodes' subtrees.


Preview | Diff

OrKoN commented 2 months ago

I am gonna split the changes required for a11y locator from changes to innerText (which requires more changes)