Package com.vaadin.testbench
Interface HasElementQuery
- All Superinterfaces:
HasSearchContext
- All Known Subinterfaces:
HasClearButton,HasHelper,HasValidation
- All Known Implementing Classes:
AbstractBrowserDriverTestBase,AbstractBrowserTestBase,AccordionElement,AccordionPanelElement,AnchorElement,AppLayoutElement,AvatarElement,AvatarGroupElement,BigDecimalFieldElement,BoardElement,BrowserTestBase,ButtonElement,CardElement,ChartElement,CheckboxElement,CheckboxGroupElement,ComboBoxElement,ConfirmDialogElement,ContextMenuElement,ContextMenuItemElement,ContextMenuOverlayElement,CookieConsentElement,CrudElement,CustomFieldElement,DashboardElement,DashboardSectionElement,DashboardWidgetElement,DatePickerElement,DatePickerElement.MonthCalendarElement,DatePickerElement.OverlayContentElement,DatePickerElement.WeekdayElement,DateTimePickerElement,DescriptionListElement,DetailsElement,DialogElement,DivElement,DrawerToggleElement,EmailFieldElement,EmphasisElement,FormItemElement,FormLayoutElement,GridElement,GridProElement,GridTHTDElement,GridTHTDElement,GridTRElement,GridTRElement,H1Element,H2Element,H3Element,H4Element,H5Element,H6Element,HorizontalLayoutElement,HrElement,IconElement,ImageElement,InputTextElement,IntegerFieldElement,LabelElement,ListBoxElement,ListItemElement,LoginFormElement,LoginOverlayElement,MarkdownElement,MasterDetailLayoutElement,MenuBarButtonElement,MenuBarElement,MenuBarItemElement,MessageElement,MessageInputElement,MessageListElement,MultiSelectComboBoxElement,NativeButtonElement,NativeDetailsElement,NativeLabelElement,NativeTableBodyElement,NativeTableCaptionElement,NativeTableCellElement,NativeTableElement,NativeTableFooterElement,NativeTableHeaderCellElement,NativeTableHeaderElement,NativeTableRowElement,NotificationElement,NumberFieldElement,OrderedListElement,ParagraphElement,ParallelTest,PasswordFieldElement,PopoverElement,PreElement,ProgressBarElement,RadioButtonElement,RadioButtonGroupElement,RangeInputElement,RichTextEditorElement,RowElement,ScrollerElement,SelectElement,SelectElement,SelectElement.ItemElement,SideNavElement,SideNavItemElement,SpanElement,SplitLayoutElement,TabElement,TabsElement,TabSheetElement,TestBenchElement,TestBenchTestCase,TextAreaElement,TextFieldElement,TimePickerElement,TimePickerElement.TimePickerComboBoxElement,TimePickerElement.TimePickerOverlayElement,TreeGridElement,UnorderedListElement,UploadElement,VerticalLayoutElement,VirtualListElement
-
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
-