Class CoralSelect

    • Constructor Detail

      • CoralSelect

        public CoralSelect​(java.lang.String attribute)
        Parameters:
        attribute - the attribute value for this select.
      • CoralSelect

        public CoralSelect​(com.codeborne.selenide.SelenideElement parent)
        Parameters:
        parent - element in which the coral-select is found.
    • Method Detail

      • items

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

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

        public void selectItemByIndex​(int index)
        Clicks an item by it's index.
        Parameters:
        index - index of the targeted item in this select.
      • selectItemByLabel

        public void selectItemByLabel​(java.lang.String label)
        Clicks an item by it's label.
        Parameters:
        label - label of the targeted item in this select.
      • selectItemByValue

        public void selectItemByValue​(java.lang.String value)
        Clicks an item by it's value.
        Parameters:
        value - value of the targeted item in this select.
      • 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.
      • 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.
      • popover

        public CoralPopOver popover()
        Returns:
        currently opened popover for selection.