public class AXE extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AXE.AxeRuntimeException
AxeRuntimeException represents an error returned from `axe.run()`.
|
static class |
AXE.Builder
Chainable builder for invoking aXe.
|
| Constructor and Description |
|---|
AXE() |
| Modifier and Type | Method and Description |
|---|---|
static void |
inject(org.openqa.selenium.WebDriver driver,
URL scriptUrl)
Recursively injects a script into all iframes and the top level document.
|
static void |
inject(org.openqa.selenium.WebDriver driver,
URL scriptUrl,
Boolean skipFrames)
Recursively injects a script to the top level document with the option to skip iframes.
|
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.
|
public static void inject(org.openqa.selenium.WebDriver driver,
URL scriptUrl,
Boolean skipFrames)
driver - WebDriver instance to inject intoscriptUrl - URL to the script to injectskipFrames - True if the script should not be injected into iframespublic static void inject(org.openqa.selenium.WebDriver driver,
URL scriptUrl)
driver - WebDriver instance to inject intoscriptUrl - URL to the script to injectpublic static String report(org.json.JSONArray violations)
violations - JSONArray of violationspublic static void writeResults(String name, Object output)
name - Desired filename, sans extensionoutput - Object to write. Most useful if you pass in either the Builder.analyze() response or the
violations array it contains.Copyright © 2019. All rights reserved.