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 void |
inject(org.openqa.selenium.WebDriver driver,
IAxeScriptProvider scriptProvider)
Injects Axe script into frames.
|
static void |
inject(org.openqa.selenium.WebDriver driver,
String script)
Injects Axe script into frames.
|
static void |
injectAsync(org.openqa.selenium.WebDriver driver,
String script)
Injects script into frames to be run asynchronously.
|
public static Object executeAsyncScript(org.openqa.selenium.WebDriver webDriver, String command, Object... args)
command - 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)
throws OperationNotSupportedException,
IOException
driver - WebDriver instance to inject intoscriptProvider - Provider that get the aXe script to injectOperationNotSupportedException - if the operation errors outIOExceptionpublic static void inject(org.openqa.selenium.WebDriver driver,
String script)
driver - WebDriver instance to inject intoscript - The script to injectpublic static void injectAsync(org.openqa.selenium.WebDriver driver,
String script)
driver - WebDriver instance to inject intoscript - The script to injectCopyright © 2020. All rights reserved.