Class TestBench

java.lang.Object
com.vaadin.testbench.TestBench

public class TestBench extends Object
  • Constructor Details

    • TestBench

      public TestBench()
  • Method Details

    • ensureLoaded

      public static void ensureLoaded()
    • 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.
      Type Parameters:
      T - the type of the TestBenchElement to return
      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