We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.testbench.
Class TestBench
- java.lang.Object
-
- com.vaadin.testbench.TestBench
-
public class TestBench extends Object
-
-
Constructor Summary
Constructors Constructor and Description TestBench()
-
Method Summary
All Methods 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>
TcreateElement(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>
Twrap(TestBenchElement element, Class<T> elementType)
-
-
-
Method Detail
-
createDriver
public static TestBenchDriverProxy createDriver(org.openqa.selenium.WebDriver driver)
-
createDriver
public static TestBenchDriverProxy createDriver(org.openqa.selenium.WebDriver driver, TestBenchCommandExecutor commandExecutor)
-
wrap
public static <T extends TestBenchElement> T wrap(TestBenchElement element, Class<T> elementType)
-
createElement
public static TestBenchElement createElement(org.openqa.selenium.WebElement webElement, TestBenchCommandExecutor tbCommandExecutor)
-
createElement
public static <T extends TestBenchElement> T createElement(Class<T> clazz, org.openqa.selenium.WebElement webElement, TestBenchCommandExecutor tbCommandExecutor)
Create new Element of given type. Initialize it with WebElement and TestBenchCommandExecutor. This feature is advanced and potentially dangerous.
Parameters:
clazz
- Class of wanted ElementwebElement
- Selenium WebElement to be wrapped into given ClasstbCommandExecutor
- TestBenchCommandExecutor instanceReturns:
an element of the given class wrapping given the given WebElement, or
null
if the element is null
-
-