Interface HasTextFilter

  • All Implemented Interfaces:

    
    public interface HasTextFilter<C extends Component, HasText, SELF extends Locator<C, SELF>>
    
                        

    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 com.vaadin.flow.component.HasValue/com.vaadin.flow.component.HasLabel, not HasText) into a compile error rather than a silent no-op.

    Since:

    1.1

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      SELF withText(String text) Requires the text content of the component to equal the given text.
      SELF withTextContaining(String text) Requires the text content of the component to contain the given text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • withText

         SELF withText(String text)

        Requires the text content of the component to equal the given text.