No description, website, or topics provided.
JavaScript Scala HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Accessibility Driver

A selenium webdriver implementation which will produce an HTML accessibility report using google accessibility developer tools


PhantomJS must be installed, e.g.

brew install phantomjs

(add linux instructions)


val driver = new AccessibilityDriver([port for proxy], [uri whitelist])

(run tests)

driver.quit //The quit command triggers the production of the report, make sure you quit the driver after testing
  • port for proxy is the port that the internal proxy server will use, default is 8080
  • uri whitelist is a list of regexs that the intercepted web pages will be checked against, accessibility reports are only run against those that match


The reports produced will end up in



To package for scala versions 2.10 and 2.11 (as defined in build.sbt), use a +!

> + package
> + publish
> + publishLocal

Examples of possible commands prefixed with +


To enable logging of the underlying proxy server, use the following example config in 'resources/log4j.xml'

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="">
    <appender class="org.apache.log4j.RollingFileAppender" name="RollingTextFile">
        <param value="log.txt" name="File"/>
        <param value="5" name="MaxBackupIndex"/>
        <param value="50MB" name="MaxFileSize"/>
        <layout class="org.apache.log4j.PatternLayout"/>
    <appender class="org.apache.log4j.ConsoleAppender" name="stdout">
        <layout class="org.apache.log4j.PatternLayout">
            <param value="%-6r %d{ISO8601} %-5p [%t] %c{2} (%F:%L).%M() - %m%n" name="ConversionPattern"/>
    <appender class="org.apache.log4j.FileAppender" name="TextFile">
        <param value="false" name="Append"/>
        <param value="log.txt" name="File"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param value="%-6r %d{ISO8601} %-5p [%t] %c{2} (%F:%L).%M() - %m%n" name="ConversionPattern"/>
    <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="500"/>
        <appender-ref ref="TextFile"/>
        <appender-ref ref="stdout"/>
    <logger name="org.eclipse.jetty">
        <level value="off"/>
    <logger name="org.littleshoot.proxy">
        <level value="info"/>
        <level value="info"/>
        <appender-ref ref="ASYNC"/>

Suggested Future Improvements

  • Support for other delegate drivers (currently hardcoded to use FirefoxDriver)
  • Some tests
  • Parsing of reports so we can get some metrics e.g. number of warnings
  • Dont run reports on the same page twice (check the page md5 hash)
  • Support for compressed responses