public abstract class AbstractFluentListConditions extends java.lang.Object implements FluentListConditions, ListConditionsElements
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFluentListConditions(java.util.List<? extends FluentWebElement> elements)
Creates a new conditions on list of elements.
|
| Modifier and Type | Method and Description |
|---|---|
StringConditions |
attribute(java.lang.String name)
Check conditions on the given attribute the attribute has the given value.
|
boolean |
attribute(java.lang.String name,
java.lang.String value)
Check that the attribute has the given value.
|
boolean |
className(java.lang.String className)
Check that the class attribute has the given class name.
|
boolean |
clickable()
Check that this element is visible and enabled such that you can click it.
|
boolean |
displayed()
Check that this element is displayed.
|
boolean |
enabled()
Check that this element is enabled.
|
java.util.List<? extends FluentWebElement> |
getActualElements()
Get the actual list of elements.
|
protected java.util.List<? extends FluentWebElement> |
getElements()
Get the underlying list of elements
|
StringConditions |
id()
Check conditions on this element id.
|
boolean |
id(java.lang.String id)
Check that this element has the given id.
|
protected boolean |
isNegation()
Is this conditions list negated ?
|
StringConditions |
name()
Check conditions on this element name.
|
boolean |
name(java.lang.String name)
Check that this element has the given name
|
boolean |
present()
Check that this element is present.
|
RectangleConditions |
rectangle()
check conditions on rectangle of this element
|
boolean |
selected()
Check that this element is selected.
|
void |
setNegation(boolean negation)
Set negation value
|
AbstractIntegerConditions |
size()
Check that this element list has the given size.
|
boolean |
size(int size)
Check that this element list has the given size.
|
boolean |
stale()
Check that this element is no longer attached to the DOM.
|
StringConditions |
tagName()
Check conditions on this element tagName.
|
boolean |
tagName(java.lang.String tagName)
Check that this element has the given tagName
|
StringConditions |
text()
Check conditions on this element text.
|
boolean |
text(java.lang.String text)
Check that this element has the given text.
|
StringConditions |
textContent()
Check conditions on this element text content.
|
boolean |
textContent(java.lang.String anotherString)
Check conditions on this element text content.
|
StringConditions |
value()
Check conditions on this element value.
|
boolean |
value(java.lang.String value)
Check that this element has the given value
|
boolean |
verify(java.util.function.Predicate<FluentWebElement> predicate)
Check that the given predicate is verified against this condition object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnot, verifyprotected AbstractFluentListConditions(java.util.List<? extends FluentWebElement> elements)
elements - underlying elementspublic boolean size(int size)
FluentListConditionssize in interface FluentListConditionssize - size of the listprotected boolean isNegation()
public void setNegation(boolean negation)
negation - negation valueprotected java.util.List<? extends FluentWebElement> getElements()
public java.util.List<? extends FluentWebElement> getActualElements()
ListConditionsElementsgetActualElements in interface ListConditionsElementspublic AbstractIntegerConditions size()
FluentListConditionssize in interface FluentListConditionspublic boolean verify(java.util.function.Predicate<FluentWebElement> predicate)
Conditionsverify in interface Conditions<FluentWebElement>predicate - predicate to checkpublic boolean present()
FluentListConditionspresent in interface FluentConditionspresent in interface FluentListConditionspublic boolean clickable()
FluentConditionsclickable in interface FluentConditionspublic boolean stale()
FluentConditionsstale in interface FluentConditionspublic boolean displayed()
FluentConditionsdisplayed in interface FluentConditionspublic boolean enabled()
FluentConditionsenabled in interface FluentConditionspublic boolean selected()
FluentConditionsselected in interface FluentConditionspublic boolean attribute(java.lang.String name,
java.lang.String value)
FluentConditionsattribute in interface FluentConditionsname - attribute name to checkvalue - attribute value to checkpublic StringConditions attribute(java.lang.String name)
FluentConditionsattribute in interface FluentConditionsname - attribute name to checkpublic boolean id(java.lang.String id)
FluentConditionsid in interface FluentConditionsid - id to checkpublic StringConditions id()
FluentConditionsid in interface FluentConditionspublic StringConditions name()
FluentConditionsname in interface FluentConditionspublic boolean name(java.lang.String name)
FluentConditionsname in interface FluentConditionsname - name to checkpublic StringConditions tagName()
FluentConditionstagName in interface FluentConditionspublic boolean tagName(java.lang.String tagName)
FluentConditionstagName in interface FluentConditionstagName - tagName to checkpublic StringConditions value()
FluentConditionsvalue in interface FluentConditionspublic boolean value(java.lang.String value)
FluentConditionsvalue in interface FluentConditionsvalue - value to checkpublic StringConditions text()
FluentConditionstext in interface FluentConditionspublic boolean text(java.lang.String text)
FluentConditionstext in interface FluentConditionstext - string to compare withStringConditions.equalTo(String)public StringConditions textContent()
FluentConditionstextContent in interface FluentConditionspublic boolean textContent(java.lang.String anotherString)
FluentConditionstextContent in interface FluentConditionsanotherString - string to compare withStringConditions.equalTo(String)public RectangleConditions rectangle()
FluentConditionsrectangle in interface FluentConditionspublic boolean className(java.lang.String className)
FluentConditionsclassName in interface FluentConditionsclassName - class nameCopyright © 2018 FluentLenium. All Rights Reserved.