Package com.vaadin.testbench
Interface HasElementQuery
- All Superinterfaces:
HasSearchContext
- All Known Subinterfaces:
HasHelper
- All Known Implementing Classes:
TestBenchElement
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends TestBenchElement>
ElementQuery<T>Prepare aElementQueryinstance to use for locating components on the client.default ElementQuery<TestBenchElement>Prepare aElementQueryinstance to use for locating components on the client.Methods inherited from interface com.vaadin.testbench.HasSearchContext
getContext
-
Method Details
-
$
Prepare aElementQueryinstance 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 queriedTestBenchElement- Parameters:
clazz- the type of element to find, with the tag name defined using@Elementon the class- Returns:
- an appropriate
ElementQueryinstance
-
$
Prepare aElementQueryinstance 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
ElementQueryinstance
-