com.vaadin.testbench.

Class TestBench


  • public class TestBench
    extends Object
    • Constructor Detail

      • TestBench

        public TestBench()
    • Method Detail

      • createDriver

        public static TestBenchDriverProxy createDriver(org.openqa.selenium.WebDriver driver)
      • 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 Element

        webElement - Selenium WebElement to be wrapped into given Class

        tbCommandExecutor - TestBenchCommandExecutor instance

        Returns:

        an element of the given class wrapping given the given WebElement, or null if the element is null