Interface HasElementQuery

All Superinterfaces:
HasSearchContext
All Known Subinterfaces:
HasHelper
All Known Implementing Classes:
TestBenchElement

public interface HasElementQuery extends HasSearchContext
  • Method Details

    • $

      default <T extends TestBenchElement> ElementQuery<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.
      Type Parameters:
      T - the type of the queried TestBenchElement
      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