Hands-on With Web Accessibility Testing | by Eldad Uzman | Feb, 2022

Using robot framework and aXe

Photo by Glenn Carstens-Peters on Unsplash

Accessibility, in general, is a term used to describe the level to which a product, device, service, utility or environment is suitable to serve people with disabilities.

  1. Operable — User interface components and navigation must be operated.
  2. Understandable — Information and the operation of user interface must be understandable.
  3. Robust — Content must be robust enough that it can be interpreted reliably by a wide variety of user agents, including assistive technologies.

There are 3 main reasons:

  1. It is profitable. According to the World Health Organization, over 1 billion people all over the world are living with some form of disability, this is almost 13% of the entire world’s population. The CDC estimates that 1 in 4 adults in the United States has some type of disability. Whatever the real number is, we are talking about a very large crowd. Making sure our application is inclusive for them immediately enlarges our potential customer base.
  2. Legal penalties. I really don’t want this to be the reason, but it is.
    In many states all over the world, there are legal stipulations around web accessibility. Failing to comply with web accessibility regulations can lead to lawsuits and fines.

Introducing aXe

Ax is an open-source project developed and maintained by dequelabs.
It uses the rules provided by WCAG to create a linter, the linter runs on the website pages and provides “hints” to accessibility issues.

Introducing robotframework

I talked about robotframework in a previous article. Robotframework is a python based open-source framework for software acceptance testing.

Introducing robotframework-axelibrary

The aXe library allows us to run aXe with selenium from our robotframework test suite.

pip install robotframework==4.1.3 selenium==4.1.0 robotframework-seleniumlibrary==6.0.0 robotframework-axelibrary==0.1.5
Should Be True    ${results.violations} < 1

Accessibility becomes an important topic for testing and automating the process can help you detect accessibility issues way ahead of time.

Leave a Comment