3 ms·
Puppetaria: Accessibility-First Puppeteer Scripts
- coeneedell 6y agoWow I read that title wrong
- ximm 6y agoFor anyone interested in the concept of aria selectors: I created a pure JS implementation a while back: https://github.com/xi/aria-api/ https://github.com/xi/aria-api/
- wdb 6y agoYou might like looking at the Testing Library (www.testing-library.com) group of projects which supports has support for Puppeteer and Playwright, React etc. They use similar approach by querying elements by their ARIA roles. I think that helps to improve the accessibility of the page as you the idea is to change the markup to make it queryable through ARIA. There is also the awesome testing playground extension for Chrome and as web-site to help write these queries: https://www.testing-playground.com https://www.testing-playground.com
- zabil 6y agoGlad to see this approach to testing, especially making sure the website is accessible. XPath and CSS selectors not ideal for testing as they tie the tests to the implementation of the page. Looking forward to using this.