Class FillSelect<E extends FluentWebElement>

  • Type Parameters:
    E - type of element to fill

    public class FillSelect<E extends FluentWebElement>
    extends BaseFill<E>
    Select form filling features.
    • Constructor Summary

      Constructors 
      Constructor Description
      FillSelect​(E element)
      Creates a new fill, from a single element.
      FillSelect​(FluentList<E> list)
      Creates a new fill, from a list of element.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected FluentList<E> getElements()
      Get elements to fill
      FillSelect withIndex​(int index)
      Select the option by its index for the Select element.
      FillSelect withText​(java.lang.String text)
      Select all options that display text matching the argument for the Select element.
      FillSelect withValue​(java.lang.String value)
      Select all options that have a value matching the argument for the Select element.
      • Methods inherited from class java.lang.Object

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

      • FillSelect

        public FillSelect​(FluentList<E> list)
        Creates a new fill, from a list of element.
        Parameters:
        list - list of element to fill
      • FillSelect

        public FillSelect​(E element)
        Creates a new fill, from a single element.
        Parameters:
        element - element to fill
    • Method Detail

      • withIndex

        public FillSelect withIndex​(int index)
        Select the option by its index for the Select element.
        Parameters:
        index - the select index value
        Returns:
        fill select constructor
      • withValue

        public FillSelect withValue​(java.lang.String value)
        Select all options that have a value matching the argument for the Select element.
        Parameters:
        value - the select matching string
        Returns:
        fill select constructor
      • withText

        public FillSelect withText​(java.lang.String text)
        Select all options that display text matching the argument for the Select element.
        Parameters:
        text - the select string part
        Returns:
        fill select constructor