Skip to content

Releases: google/semantic-locators

2.1.0

28 Mar 16:08
Compare
Choose a tag to compare

Changed

  • Update to accname 1.1.0, including iframe support
  • Support aria-pressed
  • Support for different quote characters in locator generation
  • Return null for getRole(<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

03 May 07:35
Compare
Choose a tag to compare

Fixed typo (Java -> Python) in Python README.md

2.0.0

27 Apr 13:14
Compare
Choose a tag to compare

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 for element.
  • 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

11 Mar 17:58
Compare
Choose a tag to compare

Semantic locators 1.0.0 release for JavaScript and Java