Package com.vaadin.browserless.locator
Interface HasLabelFilter<C extends Component & HasLabel,SELF extends Locator<C,SELF>>
- Type Parameters:
C- the component type, bound toHasLabelSELF- the concrete locator subtype, used for fluent chaining
- All Known Implementing Classes:
BigDecimalFieldLocator,CheckboxGroupLocator,CheckboxLocator,ComboBoxLocator,DatePickerLocator,DateTimePickerLocator,DecimalRangeSliderLocator,DecimalSliderLocator,EmailFieldLocator,IntegerFieldLocator,IntegerRangeSliderLocator,IntegerSliderLocator,MultiSelectComboBoxLocator,NumberFieldLocator,PasswordFieldLocator,RadioButtonGroupLocator,SelectLocator,TextAreaLocator,TextFieldLocator,TimePickerLocator
Mixin for
Locators whose target component implements
HasLabel. Exposes label-based filter methods that would be
meaningless on components without a label, turning a call like
findButton().withLabel("Save") (Button is
HasText, not HasLabel) into a
compile error rather than a silent no-op.- Since:
- 1.1
-
Method Summary
-
Method Details
-
withLabel
Requires the matched component'slabelproperty to be exactly the given value. Use this for form fields where the end user identifies a field by its label. -
withLabelContaining
Requires the matched component'slabelproperty to contain the given text.
-