public class AttributeFilter extends Object implements SearchFilter
| Constructor and Description |
|---|
AttributeFilter(String customAttribute,
AbstractMatcher matcher)
Construct a filter with a custom attribute and an associated matcher
|
AttributeFilter(String attributeName,
String value)
Construct a filter with an attribute name and an associated value
|
| Modifier and Type | Method and Description |
|---|---|
Collection<FluentWebElement> |
applyFilter(Collection<FluentWebElement> elements)
Apply the filter.
|
String |
getAttribut()
Get the attribute name (lower case).
|
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.
|
String |
toString() |
public AttributeFilter(String attributeName, String value)
attributeName - attribute namevalue - value to filterpublic AttributeFilter(String customAttribute, AbstractMatcher matcher)
customAttribute - custom attribute namematcher - matcherpublic String getAttribut()
public AbstractMatcher getMatcher()
public String getCssFilter()
SearchFiltergetCssFilter in interface SearchFilterpublic boolean isCssFilterSupported()
SearchFilterisCssFilterSupported in interface SearchFilterpublic Collection<FluentWebElement> applyFilter(Collection<FluentWebElement> elements)
SearchFilterapplyFilter in interface SearchFilterelements - input elementsCopyright © 2016 FluentLenium. All Rights Reserved.