Class TestBench


  • public class TestBench
    extends Object
    • Constructor Detail

      • TestBench

        public TestBench()
    • Method Detail

      • ensureLoaded

        public static void ensureLoaded()
      • 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.
        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