Interface HasPlaceholderFilter

  • All Implemented Interfaces:

    
    public interface HasPlaceholderFilter<C extends Component, HasPlaceholder, SELF extends Locator<C, SELF>>
    
                        

    Mixin for Locators whose target component implements HasPlaceholder. Exposes placeholder-based filter methods that would be meaningless on components without a placeholder, turning a call like findButton().withPlaceholder("...") (Button is not HasPlaceholder) 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 withPlaceholder(String placeholder) Requires the matched component's placeholder to be exactly the given value.
      SELF withPlaceholderContaining(String text) Requires the matched component's placeholder 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

      • withPlaceholder

         SELF withPlaceholder(String placeholder)

        Requires the matched component's placeholder to be exactly the given value. Useful for toolbar / search fields that intentionally omit a stacked label and identify themselves to the user via placeholder text instead.