Class DefaultSeleniumRadioButtonGroup

    • Constructor Detail

      • DefaultSeleniumRadioButtonGroup

        public DefaultSeleniumRadioButtonGroup()
    • Method Detail

      • getElementsInternal

        protected java.util.List<RadioButton> getElementsInternal​(java.util.function.Predicate<? super RadioButton> predicate,
                                                                  boolean returnOnFirstMatch)
      • isDisplayed

        public boolean isDisplayed()
        Description copied from interface: Displayable
        Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.
        Specified by:
        isDisplayed in interface Displayable
        Returns:
        true, if the element is displayed.
      • findElements

        public java.util.List<RadioButton> findElements​(java.util.function.Predicate<? super RadioButton> predicate)
        Description copied from interface: ElementCollection
        Returns all elements which match the given predicate
        Specified by:
        findElements in interface ElementCollection<RadioButton>
        Parameters:
        predicate - the predicate for finding the elements
        Returns:
        all elements which match the given predicate
      • findFirstElement

        public RadioButton findFirstElement​(java.util.function.Predicate<? super RadioButton> predicate)
        Description copied from interface: ElementCollection
        Returns the first element which matches the given predicate
        Specified by:
        findFirstElement in interface ElementCollection<RadioButton>
        Parameters:
        predicate - the predicate for selecting the element
        Returns:
        all elements which match the given predicate, cannot be null
      • findElementsByLabel

        public java.util.List<RadioButton> findElementsByLabel​(java.lang.String aLabel)
        Description copied from interface: RadioButtonGroup
        Returns all elements which have the given label.
        Specified by:
        findElementsByLabel in interface RadioButtonGroup
        Parameters:
        aLabel - the label for finding the elements
        Returns:
        all elements which have the given label.
      • findFirstElementByLabel

        public RadioButton findFirstElementByLabel​(java.lang.String aLabel)
        Description copied from interface: RadioButtonGroup
        Returns the first element which has the given label
        Specified by:
        findFirstElementByLabel in interface RadioButtonGroup
        Parameters:
        aLabel - the label for selecting the element
        Returns:
        all elements which have the given label, cannot be null