Interface HasElementQuery

    • Method Detail

      • $

        default <T extends TestBenchElementElementQuery<T> $​(Class<T> clazz)
        Prepare a ElementQuery instance to use for locating components on the client. The returned object can be manipulated to uniquely identify the sought-after object. If this function gets called through an element, it uses the element as its search context. Otherwise the search context is the driver.
        Parameters:
        clazz - the type of element to find, with the tag name defined using @Element on the class
        Returns:
        an appropriate ElementQuery instance
      • $

        default ElementQuery<TestBenchElement> $​(String tagName)
        Prepare a ElementQuery instance to use for locating components on the client. The returned object can be manipulated to uniquely identify the sought-after object. If this function gets called through an element, it uses the element as its search context. Otherwise the search context is the driver.
        Parameters:
        tagName - the tag name of the element to find
        Returns:
        an appropriate ElementQuery instance