Interface HasAriaLabelFilter

  • All Implemented Interfaces:

    
    public interface HasAriaLabelFilter<C extends Component, HasAriaLabel, SELF extends Locator<C, SELF>>
    
                        

    Mixin for Locators whose target component implements HasAriaLabel. Exposes aria-label-based filter methods that would be meaningless on components that don't expose the attribute, turning an inapplicable call 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 withAriaLabel(String ariaLabel) Requires the matched component's aria-label attribute to be exactly the given value.
      SELF withAriaLabelContaining(String text) Requires the matched component's aria-label attribute 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

      • withAriaLabel

         SELF withAriaLabel(String ariaLabel)

        Requires the matched component's aria-label attribute to be exactly the given value.