Package com.vaadin.browserless.locator
Interface HasValueFilter
-
- All Implemented Interfaces:
public interface HasValueFilter<C extends Component, HasValue<out Object, V>, V, SELF extends Locator<C, SELF>>Mixin for Locators whose target component implements HasValue. Exposes the
withValuefilter 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
Vis 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 becauseTextFieldisHasValue<?, String>, notHasValue<?, Integer>.- Since:
1.1