Table of Contents
ABOUT AXE TOOL
Axe is a free accessibility tool kit from Deque Systems.
Axe supports 3 types of testing in the dev tools plugin installed:
- Automated scan of the entire web pages
- Automated scan of the selected web page/element
- Guided manual test
- Axe helps to export the issues by accessibility type either in JSON or CSV format
STEPS TO WORK WITH AXE TOOL:
- Go to Chrome Web Store & search for “axe DevTools”
- Click “Add to Chrome”
- When prompted, click Add extension to complete the installation
- Open the website that you want to test in Google Chrome
- Ensure the page is fully loaded so that all content is available for testing
- Right-click anywhere on the page and select Inspect, or you can press Ctrl + Shift + I (Windows) or Cmd + Option + I (Mac)
- The Developer Tools panel will appear, typically on the right or bottom of the screen
- Once the Developer Tools are open, look for the axe tab in the Developer Tools panel (usually at the top of the panel)
- If it’s not immediately visible, you might need to click the >> button to reveal hidden tabs
- Click on the “axe” tab to open the accessibility testing tools
- Click on Sign in/Sign up to Axe tool
- Inside the axe DevTools tab, you’ll see a button labeled “Analyze”. Click on this button to run an accessibility test on the page
- axe DevTools will automatically analyze the page for common accessibility issues. It will show you a list of issues, categorized by severity (e.g., critical, moderate, minor, etc.).
- After the scan is complete, you will see detailed information about each accessibility issue, including:
- Issue description: A short explanation of what the problem is
- Recommendations: Suggestions on how to fix the issue
- Impact: The potential impact on users (e.g., users with visual impairments or screen readers)
- Element in the DOM: A link to the specific HTML element where the issue was found
- Now, you can review the test results
- Severity and Category: The results are divided into different levels of severity (e.g., critical, serious, minor) and categories (e.g., color contrast, ARIA, forms) Note: Critical issues should be prioritized as they may significantly affect accessibility
- Description and Fix: Clicking on each issue will show a detailed description and sometimes a recommended solution or best practices for resolving the issue
- Let us now inspect the accessibility Issues
- You can click on each accessibility issue to see more details, including:
- Where the issue is found in the page’s HTML (the affected element)
- A visual highlight on the element in the page itself
- You can then use the browser’s Developer Tools to inspect the HTML and CSS and make the necessary fixes for the accessibility problem
- After applying the fixes to your website, you can rerun the accessibility test to check if the issue has been resolved
- You can click on each accessibility issue to see more details, including:
- Additional Features of Axe DevTools
- Color Contrast Checker: You can check if the color contrast on your page meets WCAG (Web Content Accessibility Guidelines) standards
- Manual Accessibility Checks: In addition to automated testing, you can perform manual accessibility checks through the axe extension
- Export Reports: You can export the accessibility report as a CSV or JSON file for documentation or sharing with your team
- By following these steps, you can easily use axe DevTools to identify and fix accessibility issues in your web application, ensuring that your website is more inclusive and accessible to a wider audience
https://broken-workshop.dequelabs.com/
PROS
- APIs available for Android, Web (browser extensions) and Windows.
- Supports multiple browsers (Microsoft Edge v40 and above, Google Chrome v42 and above, Mozilla Firefox v38 and above, Apple Safari v7 and above, Internet Explorer v9, 10, 11).
- Ready to plug in integrations are available. So, for any automation framework it gives seamless integration feasibility.
- Selenium WebDriver integration is available. Hence end to end testing or multi-page testing is possible with Axe.
- Provides links to the rules where it failed.
- axe rates the impact of accessibility issues differently than WAVE. It does not use the “alerts” category, rather all errors are given a severity level. Using this system prompts more errors to be fixed than if some errors are labeled as alerts implying they are not important.
- axe will list elements that are not necessarily accessibility errors but warrant review based on the context of the element.
- Axe gives an option to review issues. The issues under review are not really violations but they can be accessibility issues one should consider (maybe in the future).
- Axe generates hints to fix the violations.
CONS
- Axe can not be used to test iOS applications.
- There is no results dashboard available
- axe will point out some color contrast issues that still need to be tested manually.
- While not overtly a drawback with this tool, it does require a bit more knowledge by the user to understand the process for testing.
BEST PRACTICES FOR EFFECTIVE ACCESSIBILITY TESTING
Integrating Accessibility Testing into the Development Lifecycle:
- Shift-Left Testing: incorporate accessibility testing early in the development process. It helps identify accessibility issues before they’re deeply embedded in the code
- Continuous integration: integrate accessibility checks into the CI/CD pipeline. Automated tools can run accessibility tests as part of regular builds
- Comprehensive Test Plans: develop test plans that include accessibility criteria
- Cross-functional collaboration: encourage collaboration between developers, designers, and testers to ensure multiple perspectives
- Exploratory testing: use the application in ways that real users with disabilities would. That way, you guarantee a more inclusive user experience.
Involving users with disabilities in testing
- User research and personas: create detailed exploratory testing personas representing users with various disabilities- they should guide the design and testing processes
- User Testing sessions: conduct usability testing sessions with people who have disabilities. Their direct feedback can reveal issues that might not be apparent through automated testing or simulations. This also applies to beta testing phases
- Feedback mechanisms: establish channels for users’ ongoing feedback. These could include forums, surveys, or direct support channels.
DEMO APPLICATIONS TO PRACTICE:
https://broken-workshop.dequelabs.com/
https://dequeuniversity.com/demo/dream
https://webtestingcourse.dequecloud.com/
https://dequeuniversity.com/demo/mars/
https://findanexpert.unimelb.edu.au/
https://dylanmhowell.com/seo-for-photographers/
https://www.ssa.gov/accessibility/andi/help/demo/index.html
https://www.washington.edu/accesscomputing/AU/