| Constructor and Description |
|---|
Builder(org.openqa.selenium.WebDriver driver,
URL script)
Initializes the Builder class to chain configuration before analyzing pages.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
AXE.Builder |
setTimeout(int timeout)
Set the script timeout.
|
AXE.Builder |
skipFrames()
Skips iframe checks
|
public Builder(org.openqa.selenium.WebDriver driver,
URL script)
driver - An initialized WebDriverscript - The javascript URL of aXepublic AXE.Builder setTimeout(int timeout)
timeout - public AXE.Builder skipFrames()
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 testCopyright © 2019. All rights reserved.