public class TestBench extends Object
Constructor and Description |
---|
TestBench() |
Modifier and Type | Method and Description |
---|---|
static TestBenchDriverProxy |
createDriver(org.openqa.selenium.WebDriver driver) |
static TestBenchDriverProxy |
createDriver(org.openqa.selenium.WebDriver driver,
TestBenchCommandExecutor commandExecutor) |
static <T extends TestBenchElement> |
createElement(Class<T> clazz,
org.openqa.selenium.WebElement webElement,
TestBenchCommandExecutor tbCommandExecutor)
Create new Element of given type.
|
static TestBenchElement |
createElement(org.openqa.selenium.WebElement webElement,
TestBenchCommandExecutor tbCommandExecutor) |
static <T extends TestBenchElement> |
wrap(TestBenchElement element,
Class<T> elementType) |
public static TestBenchDriverProxy createDriver(org.openqa.selenium.WebDriver driver)
public static TestBenchDriverProxy createDriver(org.openqa.selenium.WebDriver driver, TestBenchCommandExecutor commandExecutor)
public static <T extends TestBenchElement> T wrap(TestBenchElement element, Class<T> elementType)
public static TestBenchElement createElement(org.openqa.selenium.WebElement webElement, TestBenchCommandExecutor tbCommandExecutor)
public static <T extends TestBenchElement> T createElement(Class<T> clazz, org.openqa.selenium.WebElement webElement, TestBenchCommandExecutor tbCommandExecutor)
clazz
- Class of wanted ElementwebElement
- Selenium WebElement to be wrapped into given ClasstbCommandExecutor
- TestBenchCommandExecutor instancenull
if the element is nullCopyright © 2019. All rights reserved.