Package com.vaadin.testbench
Interface HasHelper
-
- All Superinterfaces:
HasElementQuery,HasPropertySettersGetters,HasSearchContext,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement
public interface HasHelper extends HasPropertySettersGetters, HasElementQuery
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
All Methods Instance Methods Default Methods Modifier and Type Method Description default TestBenchElementgetHelperComponent()Gets the slotted helper component for the element.default StringgetHelperText()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.WebElement
clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
-
-
-
-
Method Detail
-
getHelperText
default String getHelperText()
Gets the helper text for the element.- Returns:
- the label or an empty string if there is no helper text
-
getHelperComponent
default TestBenchElement getHelperComponent()
Gets the slotted helper component for the element.- Returns:
- the slotted component or
nullif there is no component
-
-