Hey dev community! With the holidays right around the corner, it feels like the perfect time to talk about one of the best gifts we can give our users: an accessible web. Here at TestZeus, we’ve been hard at work adding Accessibility Testing to our open-source Hercules Agent—and I’m super excited to share the details with you!
Accessibility is about making sure everyone can use your website or app, regardless of ability. That includes users who rely on screen readers, have motor difficulties, or experience color blindness, among many other scenarios. It’s not just a moral responsibility or a legal checkmark—it’s about crafting better user experiences for everyone.
If you haven’t heard of it yet, Hercules is our open-source testing agent that automates various aspects of software testing. By adding Accessibility Testing, we aim to reduce the friction developers often face when trying to meet WCAG (Web Content Accessibility Guidelines). Some highlights:
In other words, we’re focusing on practicality and affordability, so you don’t need a huge budget or specialized skillset to make your site more inclusive.
.feature
files. It’s straightforward and keeps the logic clear.We’ve included a snippet below to show how a typical .feature
file might look, using the Zerodha brokerage calculator page as an example:
Feature: Check accessibility for brokerage calculator on Zerodha website
# This feature tests the brokerage calculator, and contract notes on Zerodha website
Scenario Outline: Check calculations on brokerage and SEBI charges
Given the user is on "https://zerodha.com/brokerage-calculator#tab-equities"
Then validate the page for accessibility.
Then there should not be any issues.
Here’s the breakdown:
Hercules interprets this scenario, visits the page, scans it, and flags any WCAG non-compliances.
Once your tests complete, Hercules shows you a report detailing any accessibility issues found:
This immediate feedback loop makes it easy for devs to fix issues before they reach production.
Because Hercules is open-source and script-friendly, you can plug it into your CI pipeline. For example, in GitHub Actions, you can create a workflow that runs Hercules every time you push new code. That way, you’ll catch accessibility regressions early in the development process.
While Hercules does a fantastic job with automated scans, keep in mind that accessibility is a multifaceted area. You might still want to:
Automated testing is a huge help, but manual testing still plays a key role in thorough accessibility coverage.
This holiday season, consider giving the gift of an accessible experience to your users. With Hercules, you can weave accessibility checks right into your development cycle—reducing barriers and making the web a more inclusive place.
Here are some helpful links:
If you have any questions, feedback, or ideas for improvement, we’d love to hear from you! Let’s work together to make the internet more welcoming for all.
Happy Holidays and Happy Testing!