Raakt - The Ruby Accessibility Analysis Kit

Raakt is a web accessibility analysis tool that makes it easy to integrate basic accessibility evaluation early in the development process. This means that you will save time (and money) as basic technical accessibility issues can be caught automatically as part of your automated test procedure.

What separates Raakt from other accessibility evaluation tools is that only Tests that are machine verifiable are included. The emphasis is on finding inaccessible stuff. It does not pretend to be able to tell you that your site is accessible (no automated tool can do that).

Raakt can be used by developers with limited web accessibility knowledge and fits into their regular suite of tests. When you do your expert accessibility evaluation, you can focus on issues that need manual assessment.

Paste the code below into a text file (Some free advice: don't name your test file “raakt.rb”). This will do a simple test of a remote web page:

require 'rubygems'
require 'mechanize'
require 'raakt'
agent = Mechanize.new
page = agent.get("http://www.peterkrantz.com")
raakttest = Raakt::Test.new(page.body)
result = raakttest.all
if result.length > 0
  puts "Accessibility problems detected:"
  puts result
  puts "No measurable accessibility problems were detected."


Getting started with Raakt is easy:

Using Raakt in your development environment

Raakt is meant to be part of your automated HTML unit tests (or acceptance tests or functional tests or what you call them).

Would you like to use Raakt in an environment not listed here? Please file a feature request at Rubyforge.


To learn more about Raakt, see:

Extending Raakt

Adding your own tests to Raakt (and other Ruby libraries) is easy. See the examples section for a description on how to add a HTML validation test.

Questions, Feedback, Bugs, Praise

  • Stumped? Frequently asked questions may help you.
  • Found a bug? Patches for bugs are always welcome. If you want to report a bug, please use the Rubyforge issue tracker for Raakt.
  • How to get in touch with me? Send email to peter dot krantz at gmail dot com. I would love to hear about how you are using Raakt.
start.txt · Last modified: 2013-05-30 22:05 by peterkz
Recent changes RSS feed, Powered by DokuWiki