Class CoralButtonList

    • Constructor Detail

      • CoralButtonList

        public CoralButtonList​(com.codeborne.selenide.SelenideElement parent)
        Parameters:
        parent - the parent element containing this select list.
      • CoralButtonList

        public CoralButtonList​(java.lang.String selector)
        Parameters:
        selector - the selector to wrap this object on.
    • Method Detail

      • items

        public com.codeborne.selenide.ElementsCollection items()
        Returns:
        all the items in this list.
      • getItemByValue

        public com.codeborne.selenide.SelenideElement getItemByValue​(java.lang.String value)
        Parameters:
        value - value of the targeted item in this list.
        Returns:
        the element or null if it doesn't exist.
      • getItemByText

        public com.codeborne.selenide.SelenideElement getItemByText​(java.lang.String text)
        Parameters:
        text -
        Returns:
        the element or null if it doesn't exist.
      • selectByValue

        public void selectByValue​(java.lang.String value)
        Clicks an item.
        Parameters:
        value - - the value of the item in the rail toggle.
      • hasItemByValue

        public boolean hasItemByValue​(java.lang.String value)
        Determines if an option exists on the cyclebutton.
        Parameters:
        value - - the value of the item in the rail toggle.
        Returns:
        true if an option exists or not on the cyclebutton.