Class CoralList

    • Constructor Detail

      • CoralList

        public CoralList​(java.lang.String cssSelector)
        Parameters:
        cssSelector - the cssSelector for filtering on coral-list elements.
    • Method Detail

      • getItemsByAttribute

        public java.util.stream.Stream<CoralList.CoralListItem> getItemsByAttribute​(java.lang.String attribute,
                                                                                    java.lang.String value)
        Parameters:
        attribute - attribute selector string.
        value - value to match with.
        Returns:
        the stream of CoralListItem that matches.
      • selectedItem

        public CoralList.CoralListItem selectedItem()
        Returns:
        the selected item element or null if it doesn't exist.
      • hasItemByAttribute

        public boolean hasItemByAttribute​(java.lang.String attribute,
                                          java.lang.String value)
        Determines if an item exists in the list.
        Parameters:
        attribute - attribute selector string.
        value - value to match with.
        Returns:
        true if the list contains the attribute / value pairs.
      • items

        public java.util.stream.Stream<CoralList.CoralListItem> items()
        Returns:
        a stream of CoralListItem from this list.
      • itemsCollection

        public com.codeborne.selenide.ElementsCollection itemsCollection()
        Returns:
        collection of CoralListItem from this list.
      • waitForItemByAttribute

        public void waitForItemByAttribute​(java.lang.String attribute,
                                           java.lang.String expectedValue)
        Poll the list for any item with matching value for given attribute.
        Parameters:
        attribute - attribute name
        expectedValue - expected value for this attribute.