Aim of this project is to make websites accessible for visually impaired people. It is a command line tool which helps to test whether a website is web accessibility compliant or not. It crawls a web page for different urls of the same domain and performs web accessibility testing for each consecutive url, according to WCAG standards. When the crawler crawls a webpage it looks for anchor tags. Filtering is done at this stage, only valid urls are checked for accessibility.
Process followed during Web Accessibility testing:
- Provide a website URL.
- Crawl the given URL for all the links present on that page
- Find links and check if they are valid URLs or not. They should not be email links, ppts, or a different one. For all these, we have checked with the help of regular expressions.
- After getting the links, we checked for the accessibility violations, if found a list of those will appear with the element in which that error occurred. To test for accessibility, Selenium WebDriver is used, which is a browser automation framework that accepts commands and sends them to a browser. It is implemented through a browser-specific driver. It controls the browser by directly communicating with it.
Flowchart for accessibility testing:
Various commands to perform the testing are: