Class CoralSelectList

    • Constructor Detail

      • CoralSelectList

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

        public CoralSelectList​(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.
      • items

        public com.codeborne.selenide.ElementsCollection items​(com.codeborne.selenide.SelenideElement group)
        Parameters:
        group - coral-selectist-group element for which all the items needs to be returned
        Returns:
        all the items of a group in this list.
      • groups

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

        public com.codeborne.selenide.SelenideElement getGroupByLabel​(java.lang.String label)
        Parameters:
        label - label of the targeted group in this list.
        Returns:
        the element or null if it doesn't exist.
      • 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.
      • selectedItem

        public com.codeborne.selenide.SelenideElement selectedItem()
        Returns:
        the selected item element or null if it doesn't exist.
      • selectedItemLabel

        public java.lang.String selectedItemLabel()
        Returns the label of the selected item.
        Returns:
        the selected label.
      • selectByValue

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

        public void selectByIndex​(int index)
        Clicks an item.
        Parameters:
        index - - the index of the item in the rail toggle.
      • selectByLabel

        public void selectByLabel​(java.lang.String label)
        Clicks an item.
        Parameters:
        label - - the selector of the item in the rail toggle.
      • hasItemBySelector

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