public final class SeleniumWComponentsWebDriverFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.WebDriver |
createBackingDriver(String backingDriverClass)
Create a WebDriver implementation from a String class name.
|
static <T extends org.openqa.selenium.WebDriver> |
createDriver(String backingDriverClass)
Create a SeleniumWComponentsWebDriver backed by the an instance of the given
backingDriverClass class name.
|
static <T extends org.openqa.selenium.WebDriver> |
createDriver(T backingDriver)
Create a SeleniumWComponentsWebDriver backed by the given WebDriver.
|
static <T extends org.openqa.selenium.WebDriver> |
createDriver(WebDriverType<T> backingDriverType)
Create a SeleniumWComponentsWebDriver backed by the driver implementation of the
given WebDriverType.
|
public static <T extends org.openqa.selenium.WebDriver> SeleniumWComponentsWebDriver<T> createDriver(T backingDriver)
T - the type of the Selenium WebDriver.backingDriver - the WebDriver implementation.public static <T extends org.openqa.selenium.WebDriver> SeleniumWComponentsWebDriver<T> createDriver(WebDriverType<T> backingDriverType)
T - the type of the Selenium WebDriver.backingDriverType - the WebDriverType that references the backing
WebDriver to wrap.public static <T extends org.openqa.selenium.WebDriver> SeleniumWComponentsWebDriver<T> createDriver(String backingDriverClass)
Create a SeleniumWComponentsWebDriver backed by the an instance of the given backingDriverClass class name.
WARNING: As reflection is used to instantiate the WebDriver, the type T may be unreliable if not used correctly.
T - the type of the Selenium WebDriver.backingDriverClass - the full class name of the WebDriver
implementation.public static org.openqa.selenium.WebDriver createBackingDriver(String backingDriverClass)
backingDriverClass - the WebDriver implementation class.Copyright © 2024. All rights reserved.