Package org.fluentlenium.core.filter
Class PredicateFilter
- java.lang.Object
-
- org.fluentlenium.core.filter.PredicateFilter
-
- All Implemented Interfaces:
SearchFilter
public class PredicateFilter extends Object implements SearchFilter
Search filter based on a predicate.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FluentWebElement>
applyFilter(Collection<FluentWebElement> elements)
Apply the filter.String
getCssFilter()
Get the CSS string used by CSS search time filtering.boolean
isCssFilterSupported()
Does this filter support filtering at search time with CSS selector.
-
-
-
Method Detail
-
getCssFilter
public String getCssFilter()
Description copied from interface:SearchFilter
Get the CSS string used by CSS search time filtering.- Specified by:
getCssFilter
in interfaceSearchFilter
- Returns:
- css filter string
-
isCssFilterSupported
public boolean isCssFilterSupported()
Description copied from interface:SearchFilter
Does this filter support filtering at search time with CSS selector.- Specified by:
isCssFilterSupported
in interfaceSearchFilter
- Returns:
- true if CSS filtering is supported, else false
-
applyFilter
public Collection<FluentWebElement> applyFilter(Collection<FluentWebElement> elements)
Description copied from interface:SearchFilter
Apply the filter.- Specified by:
applyFilter
in interfaceSearchFilter
- Parameters:
elements
- input elements- Returns:
- filtered elements
-
-