public class WebElementConditions extends AbstractObjectConditions<FluentWebElement> implements FluentConditions
ExpectedConditions on FluentWebElement in fluentlenium API.negation, object| Constructor and Description |
|---|
WebElementConditions(FluentWebElement element)
Creates a new conditions object on element
|
WebElementConditions(FluentWebElement element,
boolean negation)
Creates a new conditions object on element
|
| 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.
|
StringConditions |
id()
Check conditions on this element id.
|
boolean |
id(java.lang.String id)
Check that this element has the given id.
|
StringConditions |
name()
Check conditions on this element name.
|
boolean |
name(java.lang.String name)
Check that this element has the given name
|
protected AbstractObjectConditions<FluentWebElement> |
newInstance(boolean negationValue)
Creates a new instance of this condition.
|
WebElementConditions |
not()
Negates this condition object.
|
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.
|
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
|
getActualObject, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifypublic WebElementConditions(FluentWebElement element)
element - underlying elementpublic WebElementConditions(FluentWebElement element, boolean negation)
element - underlying elementnegation - negation valueprotected AbstractObjectConditions<FluentWebElement> newInstance(boolean negationValue)
AbstractObjectConditionsnewInstance in class AbstractObjectConditions<FluentWebElement>negationValue - negation valuepublic WebElementConditions not()
Conditionsnot in interface Conditions<FluentWebElement>not in interface FluentConditionsnot in class AbstractObjectConditions<FluentWebElement>public boolean present()
FluentConditionspresent in interface FluentConditionspublic 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 boolean name(java.lang.String name)
FluentConditionsname in interface FluentConditionsname - name to checkpublic StringConditions name()
FluentConditionsname in interface FluentConditionspublic boolean tagName(java.lang.String tagName)
FluentConditionstagName in interface FluentConditionstagName - tagName to checkpublic StringConditions tagName()
FluentConditionstagName in interface FluentConditionspublic boolean value(java.lang.String value)
FluentConditionsvalue in interface FluentConditionsvalue - value to checkpublic StringConditions value()
FluentConditionsvalue in interface FluentConditionspublic boolean text(java.lang.String text)
FluentConditionstext in interface FluentConditionstext - string to compare withStringConditions.equalTo(String)public StringConditions text()
FluentConditionstext in interface FluentConditionspublic boolean textContent(java.lang.String anotherString)
FluentConditionstextContent in interface FluentConditionsanotherString - string to compare withStringConditions.equalTo(String)public StringConditions textContent()
FluentConditionstextContent in interface FluentConditionspublic RectangleConditions rectangle()
FluentConditionsrectangle in interface FluentConditionspublic boolean className(java.lang.String className)
FluentConditionsclassName in interface FluentConditionsclassName - class nameCopyright © 2018 FluentLenium. All Rights Reserved.