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.
Package com.vaadin.testbench
Class TestBench
java.lang.Object
com.vaadin.testbench.TestBench
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 void
static <T extends TestBenchElement>
Twrap
(TestBenchElement element, Class<T> elementType)
-
Constructor Details
-
TestBench
public TestBench()
-
-
Method Details
-
ensureLoaded
public static void ensureLoaded() -
createDriver
-
createDriver
public static TestBenchDriverProxy createDriver(org.openqa.selenium.WebDriver driver, TestBenchCommandExecutor commandExecutor) -
wrap
-
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.
Type Parameters:
T
- the type of theTestBenchElement
to returnParameters:
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
-