Interface HasPlaceholderFilter<C extends Component & HasPlaceholder,SELF extends Locator<C,SELF>>

Type Parameters:
C - the component type, bound to HasPlaceholder
SELF - the concrete locator subtype, used for fluent chaining
All Known Implementing Classes:
BigDecimalFieldLocator, ComboBoxLocator, DatePickerLocator, EmailFieldLocator, InputLocator, IntegerFieldLocator, MultiSelectComboBoxLocator, NumberFieldLocator, PasswordFieldLocator, SelectLocator, TextAreaLocator, TextFieldLocator, TimePickerLocator

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.
  • Method Summary

    Modifier and Type
    Method
    Description
    default SELF
    withPlaceholder(String placeholder)
    Requires the matched component's placeholder to be exactly the given value.
    default SELF
    Requires the matched component's placeholder to contain the given text.
  • Method Details

    • withPlaceholder

      default 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.
    • withPlaceholderContaining

      default SELF withPlaceholderContaining(String text)
      Requires the matched component's placeholder to contain the given text.