com.vaadin.testbench.
Interface HasElementQuery
-
All Superinterfaces:
All Known Implementing Classes:
AnchorElement, AppLayoutElement, AppLayoutMenuElement, BoardElement, ButtonElement, ChartElement, CheckboxElement, ComboBoxElement, ConfirmDialogElement, CookieConsentElement, CrudElement, DatePickerElement, DescriptionListElement, DialogElement, DivElement, EmphasisElement, FormLayoutElement, GridElement, GridTHTDElement, GridTRElement, H1Element, H2Element, H3Element, H4Element, H5Element, H6Element, HorizontalLayoutElement, HrElement, ImageElement, InputTextElement, IronListElement, LabelElement, ListItemElement, MenuItemElement, NativeButtonElement, NotificationElement, OrderedListElement, ParagraphElement, ParallelTest, PasswordFieldElement, ProgressBarElement, RadioButtonElement, RadioButtonGroupElement, RowElement, SelectElement, SpanElement, SplitLayoutElement, TabElement, TabsElement, TestBenchElement, TestBenchTestCase, TextAreaElement, TextFieldElement, UnorderedListElement, UploadElement, VerticalLayoutElement
public interface HasElementQuery extends HasSearchContext
-
-
Method Summary
All Methods Modifier and Type Method and Description default <T extends TestBenchElement>
ElementQuery<T>$(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.-
Methods inherited from interface com.vaadin.testbench.HasSearchContext
getContext
-
-
-
-
Method Detail
-
$
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.Parameters:
clazz
- the type of element to find, with the tag name defined using@Element
on the classReturns:
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 findReturns:
an appropriate
ElementQuery
instance
-
-