Package com.vaadin.browserless.locator
Interface HasValueFilter<C extends Component & HasValue<?,V>,V,SELF extends Locator<C,SELF>>
- Type Parameters:
C- the component type, bound toHasValuewith value typeVV- the value type exposed by the component'sHasValueparameterizationSELF- the concrete locator subtype, used for fluent chaining
- All Known Implementing Classes:
BigDecimalFieldLocator,CheckboxGroupLocator,CheckboxLocator,ComboBoxLocator,DatePickerLocator,DateTimePickerLocator,DecimalRangeSliderLocator,DecimalSliderLocator,EmailFieldLocator,InputLocator,IntegerFieldLocator,IntegerRangeSliderLocator,IntegerSliderLocator,ListBoxLocator,MultiSelectComboBoxLocator,MultiSelectListBoxLocator,NumberFieldLocator,PasswordFieldLocator,RadioButtonGroupLocator,RangeInputLocator,SelectLocator,TextAreaLocator,TextFieldLocator,TimePickerLocator
Mixin for
Locators whose target component implements
HasValue. Exposes the withValue filter that would otherwise
be meaningless on components without a value, turning an inapplicable call
into a compile error rather than a silent no-op.
The value type V is threaded through the mixin header so the compiler
enforces it against the component's actual value type: e.g.
findTextField().withValue(42) fails to compile because
TextField is HasValue<?, String>, not
HasValue<?, Integer>.
-
Method Summary
-
Method Details
-
withValue
Requires the matched component to implementHasValueand to have the given value. Has no effect whenexpectedValueisnull.
-