Package com.vaadin.browserless.locator
Interface HasTextFilter<C extends Component & HasText,SELF extends Locator<C,SELF>>
- Type Parameters:
C- the component type, bound toHasTextSELF- the concrete locator subtype, used for fluent chaining
- All Known Implementing Classes:
AnchorLocator,ButtonLocator,DescriptionListLocator,DivLocator,EmphasisLocator,H1Locator,H2Locator,H3Locator,H4Locator,H5Locator,H6Locator,ImageLocator,ListItemLocator,NativeButtonLocator,NativeLabelLocator,OrderedListLocator,ParagraphLocator,PreLocator,RouterLinkLocator,SpanLocator,UnorderedListLocator
Mixin for
Locators whose target component implements HasText.
Exposes text-based filter methods that would be meaningless on components
without textual content, turning a call like
findTextField().withText("foo") (TextField is
HasValue/HasLabel,
not HasText) into a compile error rather than a silent no-op.-
Method Summary
-
Method Details
-
withText
Requires the text content of the component to equal the given text. -
withTextContaining
Requires the text content of the component to contain the given text.
-