Releases: google/semantic-locators
Releases · google/semantic-locators
2.1.0
Changed
- Update to accname 1.1.0, including iframe support
- Support
aria-pressed
- Support for different quote characters in locator generation
- Return
null
forgetRole(<element with invalid role attribute>)
- Polyfill
Array.from
to support older browsers
Fixed
- Improve the performance of generating many locators with batch generation methods
- Improve the performance of locator resolution by memoizing names
- More efficient detection of ancestor elements with "presentational children"
2.0.1
Fixed typo (Java -> Python) in Python README.md
2.0.0
Added
- Semantic Locators are now available in Python! 🐍
- Expose locator generation methods in wrapper libraries. You can now auto-generate semantic locators from Python or Java. e.g. in Java
BySemanticLocator.closestPreciseLocatorFor(element);
will return a semantic locator forelement
. - Wildcards are now allowed in the middle of locators, e.g.
{button 'April * 2021'}
would match<button>April 3rd 2021</button>
or<button>April 30 2021</button>
Removed
- The
includeHidden
parameter has been removed from all functions. It was hiding a11y bugs in some cases, and had undefined behaviour. See the commit message for details.
Fixed
- Numbers in attributes are now correctly parsed, so
{heading level:1}
will match<h1>
elements
1.0.0
Semantic locators 1.0.0 release for JavaScript and Java