public interface HasElementQuery extends HasSearchContext
Modifier and Type | Method and Description |
---|---|
default <T extends TestBenchElement> |
$(Class<T> clazz)
Prepare a
ElementQuery instance to use for locating components on
the client. |
default ElementQuery<TestBenchElement> |
$(String tagName)
Prepare a
ElementQuery instance to use for locating components on
the client. |
getContext
default <T extends TestBenchElement> ElementQuery<T> $(Class<T> clazz)
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.clazz
- the type of element to find, with the tag name defined using
@Element
on the classElementQuery
instancedefault ElementQuery<TestBenchElement> $(String tagName)
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.tagName
- the tag name of the element to findElementQuery
instanceCopyright © 2018. All rights reserved.