public final class WebDriverInjectorExtensions extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
executeAsyncScript(org.openqa.selenium.WebDriver webDriver,
String command,
Object... args)
Execute an asynchronous JavaScript command.
|
static Object |
executeScript(org.openqa.selenium.WebDriver webDriver,
String command,
Object... args)
Execute an synchronous JavaScript command.
|
static void |
inject(org.openqa.selenium.WebDriver driver,
IAxeScriptProvider scriptProvider,
boolean disableIframeTesting)
Injects Axe script into frames.
|
static void |
inject(org.openqa.selenium.WebDriver driver,
String script,
boolean disableIframeTesting)
Injects Axe script into frames.
|
static void |
inject(org.openqa.selenium.WebDriver driver,
String script,
boolean disableIframeTesting,
Consumer<org.openqa.selenium.WebDriver> injectCB,
boolean doNotInjectAxe)
Injects Axe script into frames.
|
static void |
injectAsync(org.openqa.selenium.WebDriver driver,
String script,
boolean disableIframeTesting)
Injects script into frames to be run asynchronously.
|
public static Object executeScript(org.openqa.selenium.WebDriver webDriver, String command, Object... args)
webDriver - for the page to be scannedcommand - The command to be executed.args - Additional arguments to be provided to the command.public static Object executeAsyncScript(org.openqa.selenium.WebDriver webDriver, String command, Object... args)
webDriver - for the page to be scannedcommand - The command to be executed.args - Additional arguments to be provided to the command.public static void inject(org.openqa.selenium.WebDriver driver,
IAxeScriptProvider scriptProvider,
boolean disableIframeTesting)
throws OperationNotSupportedException,
IOException
driver - WebDriver instance to inject intoscriptProvider - Provider that get the aXe script to injectdisableIframeTesting - Whether or not to inject intto iframesOperationNotSupportedException - if the operation errors outIOException - if an IO exception occurspublic static void inject(org.openqa.selenium.WebDriver driver,
String script,
boolean disableIframeTesting)
driver - WebDriver instance to inject intoscript - The script to injectdisableIframeTesting - Whether or not to inject intto iframespublic static void inject(org.openqa.selenium.WebDriver driver,
String script,
boolean disableIframeTesting,
Consumer<org.openqa.selenium.WebDriver> injectCB,
boolean doNotInjectAxe)
driver - WebDriver instance to inject intoscript - The script to injectdisableIframeTesting - Whether or not to inject intto iframesinjectCB - Function to call whenever a frame is injected intodoNotInjectAxe - Whether or not to inject axepublic static void injectAsync(org.openqa.selenium.WebDriver driver,
String script,
boolean disableIframeTesting)
driver - WebDriver instance to inject intoscript - The script to injectdisableIframeTesting - Whether or not to inject intto iframesCopyright © 2023. All rights reserved.