This is an extension for Robot Framework ® Browser, leveraging Axe Core for Playwright made and maintained by Deque. Basically, this is what you could use in your automated tests and would give you the results you probably know from the Axe DevTools Browser plugin.
- Robot Framework => 4 |
pip install -U robotframework - Robotframework-browser |
pip install robotframework-browser⚠️ requires other installation steps, refer to the libraries own documentation - @axe-core/playwright |
npm install @axe-core/playwright - axe-html-reporter |
npm install axe-html-reporter
The additional npm packages mentioned can be installed by using the package.json file. Run npm i . in the folder where the package.json file is. This could be the folder where you execute your tests, or, if you know what you're doing at another location.
For example usage, please have a look in axe-core-demo.robot which is kind of self-documenting
Executed example will result in: