public final class WebDriverExtensions extends Object
| Modifier and Type | Method and Description |
|---|---|
static Results |
analyze(org.openqa.selenium.WebDriver webDriver)
Run axe against the entire page.
|
static Results |
analyze(org.openqa.selenium.WebDriver webDriver,
AxeBuilderOptions axeBuilderOptions)
Run axe against the entire page.
|
static Results |
analyze(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.WebElement context)
Run axe against the entire page.
|
static Results |
analyze(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.WebElement context,
AxeBuilderOptions axeBuilderOptions)
Run axe against the entire page.
|
static void |
closeAboutBlank(org.openqa.selenium.WebDriver webDriver,
String prevWindow)
Closes the about:blank window and switches back to the provided window.
|
static String |
openAboutBlank(org.openqa.selenium.WebDriver webDriver)
Open about:blank in a secure context.
|
public static Results analyze(org.openqa.selenium.WebDriver webDriver) throws IOException, OperationNotSupportedException
webDriver - for the page to be scannedIOException - if analysis of page reaches an errorOperationNotSupportedException - if an unaccepted error occurspublic static Results analyze(org.openqa.selenium.WebDriver webDriver, AxeBuilderOptions axeBuilderOptions) throws OperationNotSupportedException, IOException
webDriver - for the page to be scannedaxeBuilderOptions - Builder optionsIOException - if analysis of page reaches an errorOperationNotSupportedException - if an unaccepted error occurspublic static Results analyze(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement context) throws IOException, OperationNotSupportedException
webDriver - for the page to be scannedcontext - A WebElement to testIOException - if analysis of page reaches an errorOperationNotSupportedException - if an unaccepted error occurspublic static Results analyze(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement context, AxeBuilderOptions axeBuilderOptions) throws OperationNotSupportedException, IOException
webDriver - for the page to be scannedcontext - A WebElement to testaxeBuilderOptions - Builder optionsIOException - if analysis of page reaches an errorOperationNotSupportedException - if an unaccepted error occurspublic static String openAboutBlank(org.openqa.selenium.WebDriver webDriver)
webDriver - of the open pagepublic static void closeAboutBlank(org.openqa.selenium.WebDriver webDriver,
String prevWindow)
webDriver - for the open pageprevWindow - ID for the window returned by openAboutBlankCopyright © 2023. All rights reserved.