Package com.vaadin.testbench
Interface HasHelper
- All Superinterfaces:
HasElementQuery
,HasPropertySettersGetters
,HasSearchContext
,org.openqa.selenium.SearchContext
,org.openqa.selenium.TakesScreenshot
,org.openqa.selenium.WebElement
- All Known Implementing Classes:
BigDecimalFieldElement
,CheckboxElement
,CheckboxGroupElement
,ComboBoxElement
,CustomFieldElement
,DatePickerElement
,DateTimePickerElement
,EmailFieldElement
,IntegerFieldElement
,MultiSelectComboBoxElement
,NumberFieldElement
,PasswordFieldElement
,RadioButtonGroupElement
,SelectElement
,TextAreaElement
,TextFieldElement
,TimePickerElement
Implement by elements which support a label, i.e. text shown typically inside
(when field is empty) or above the field (when the field has a value).
-
Method Summary
Modifier and TypeMethodDescriptiondefault TestBenchElement
Gets the slotted helper component for the element.default String
Gets the helper text for the element.Methods inherited from interface com.vaadin.testbench.HasElementQuery
$, $
Methods inherited from interface com.vaadin.testbench.HasPropertySettersGetters
getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, setProperty, setProperty, setProperty, setProperty
Methods inherited from interface com.vaadin.testbench.HasSearchContext
getContext
Methods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAs
Methods inherited from interface org.openqa.selenium.WebElement
clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
-
Method Details
-
getHelperText
Gets the helper text for the element.- Returns:
- the label or an empty string if there is no helper text
-
getHelperComponent
Gets the slotted helper component for the element.- Returns:
- the slotted component or
null
if there is no component
-