|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.deque.axe.AXE.Builder
public static class AXE.Builder
Chainable builder for invoking aXe. Instantiate a new Builder and configure testing with the include(), exclude(), and options() methods before calling analyze() to run.
| Constructor Summary | |
|---|---|
AXE.Builder(org.openqa.selenium.WebDriver driver,
URL script)
Injects the aXe script into the WebDriver. |
|
| Method Summary | |
|---|---|
org.json.JSONObject |
analyze()
Run aXe against the page. |
org.json.JSONObject |
analyze(org.openqa.selenium.WebElement context)
Run aXe against a specific WebElement. |
AXE.Builder |
exclude(String selector)
Exclude a selector. |
AXE.Builder |
include(String selector)
Include a selector. |
AXE.Builder |
options(String options)
Set the aXe options. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AXE.Builder(org.openqa.selenium.WebDriver driver,
URL script)
driver - An initialized WebDriver| Method Detail |
|---|
public AXE.Builder options(String options)
options - Options object as a JSON stringpublic AXE.Builder include(String selector)
selector - Any valid CSS selectorpublic AXE.Builder exclude(String selector)
selector - Any valid CSS selectorpublic org.json.JSONObject analyze()
public org.json.JSONObject analyze(org.openqa.selenium.WebElement context)
context - A WebElement to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||