{"repo":"abhinaba-ghosh/axe-playwright","free":true,"listed":false,"github":"https://github.com/abhinaba-ghosh/axe-playwright","clone":"git clone https://github.com/abhinaba-ghosh/axe-playwright.git","description":":wheelchair:: Custom commands for Playwright to run accessibility (a11y) checks with axe-core","language":"TypeScript","stars":232,"topics":["playwright","accesibility","axe","axe-core","a11y","a11y-testing"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Axe-Playwright Axe-core® is a powerful accessibility testing engine provided by Deque Systems that powers this package. Axe-Playwright provides simple commands to integrate the axe-core® library with your Playwright tests. This integration functions seamlessly across all Playwright browsers: Chromium, Firefox, and WebKit. Axe-core® is a trademark of Deque Systems, Inc. in the US and other countries. This project is not formally affiliated with Deque, but we are big fans! Axe-core® is used here with permission. Install and configure Add as a dev dependency: Install peer dependencies: NOTE: axe-core® is now bundled and doesn't need to be installed separately. Add Typings Commands injectAxe This will inject the axe-core® runtime into the page under test. You must run this after a call to page.goto() and before you run the checkA11y command. You run this command with injectAxe() either in your test, or in a beforeEach , as long as the visit comes first. configureAxe Purpose To configure the format of the data used by aXe. This can be used to add new rules, which must be registered with the library to execute. Description User specifies the format of the JSON structure passed to the callback of axe.run Link - aXe Docs: axe.configure checkA11y This will run axe against the document at the point in which it is called. This means you can call this after interacting with your page and uncover accessibility issues introduced as a result of rendering in response to user actions. Paramet","default_branch":null,"files":null,"tree":[],"storefront":"/r/abhinaba-ghosh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/abhinaba-ghosh/axe-playwright/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}