public class AttributeFilter extends java.lang.Object implements SearchFilter
| Constructor and Description |
|---|
AttributeFilter(java.lang.String customAttribute,
AbstractMatcher matcher)
Construct a filter with a custom attribute and an associated matcher
|
AttributeFilter(java.lang.String attributeName,
java.lang.String value)
Construct a filter with an attribute name and an associated value
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<FluentWebElement> |
applyFilter(java.util.Collection<FluentWebElement> elements)
Apply the filter.
|
java.lang.String |
getAttribute()
Get the attribute name (lower case).
|
java.lang.String |
getCssFilter()
Get the CSS string used by CSS search time filtering.
|
AbstractMatcher |
getMatcher()
Get the matcher of this filter
|
boolean |
isCssFilterSupported()
Does this filter support filtering at search time with CSS selector.
|
java.lang.String |
toString() |
public AttributeFilter(java.lang.String attributeName,
java.lang.String value)
attributeName - attribute namevalue - value to filterpublic AttributeFilter(java.lang.String customAttribute,
AbstractMatcher matcher)
customAttribute - custom attribute namematcher - matcherpublic java.lang.String getAttribute()
public AbstractMatcher getMatcher()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getCssFilter()
SearchFiltergetCssFilter in interface SearchFilterpublic boolean isCssFilterSupported()
SearchFilterisCssFilterSupported in interface SearchFilterpublic java.util.Collection<FluentWebElement> applyFilter(java.util.Collection<FluentWebElement> elements)
SearchFilterapplyFilter in interface SearchFilterelements - input elementsCopyright © 2018 FluentLenium. All Rights Reserved.