com.deque.axe
Class AXE

java.lang.Object
  extended by com.deque.axe.AXE

public class AXE
extends Object


Nested Class Summary
static class AXE.Builder
          Chainable builder for invoking aXe.
 
Constructor Summary
AXE()
           
 
Method Summary
static void inject(org.openqa.selenium.WebDriver driver, URL scriptUrl)
          Recursively injects aXe into all iframes and the top level document.
static String report(org.json.JSONArray violations)
           
static void writeResults(String name, Object output)
          Writes a raw object out to a JSON file with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AXE

public AXE()
Method Detail

inject

public static void inject(org.openqa.selenium.WebDriver driver,
                          URL scriptUrl)
Recursively injects aXe into all iframes and the top level document.

Parameters:
driver - WebDriver instance to inject into

report

public static String report(org.json.JSONArray violations)
Parameters:
violations - JSONArray of violations
Returns:
readable report of accessibility violations found

writeResults

public static void writeResults(String name,
                                Object output)
Writes a raw object out to a JSON file with the specified name.

Parameters:
name - Desired filename, sans extension
output - Object to write. Most useful if you pass in either the Builder.analyze() response or the violations array it contains.


Copyright © 2015. All rights reserved.