Package com.vaadin.testbench
Interface HasElementQuery
-
- All Superinterfaces:
HasSearchContext
- All Known Subinterfaces:
HasHelper
- All Known Implementing Classes:
ParallelTest,TestBenchElement,TestBenchTestCase
public interface HasElementQuery extends HasSearchContext
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T extends TestBenchElement>
ElementQuery<T>$(Class<T> clazz)Prepare aElementQueryinstance to use for locating components on the client.default ElementQuery<TestBenchElement>$(String tagName)Prepare aElementQueryinstance to use for locating components on the client.-
Methods inherited from interface com.vaadin.testbench.HasSearchContext
getContext
-
-
-
-
Method Detail
-
$
default <T extends TestBenchElement> ElementQuery<T> $(Class<T> clazz)
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:
clazz- the type of element to find, with the tag name defined using@Elementon the class- Returns:
- an appropriate
ElementQueryinstance
-
$
default ElementQuery<TestBenchElement> $(String tagName)
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
-
-