|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.arquillian.ajocado.waiting.conditions.AttributeEquals
public class AttributeEquals
Implementation of Condition for waiting if element's attribute given by attributeLocator has value equal to given value.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
Constructor Summary | |
---|---|
protected |
AttributeEquals()
Instantiates a new AttributeEquals |
Method Summary | |
---|---|
static AttributeEquals |
getInstance()
Factory method. |
JavaScript |
getJavaScriptCondition()
Gets JavaScript which define condition what it should be waited for satisfaction. |
boolean |
isTrue()
Returns true if condition is satisfied, false if it isn't. |
AttributeEquals |
locator(AttributeLocator<?> attributeLocator)
Returns the AttributeEquals instance with given attributeLocator preset. |
AttributeEquals |
text(String value)
Returns the AttributeEquals instance with preset value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AttributeEquals()
Method Detail |
---|
public boolean isTrue()
SeleniumCondition
isTrue
in interface SeleniumCondition
public JavaScript getJavaScriptCondition()
JavaScriptCondition
getJavaScriptCondition
in interface JavaScriptCondition
public static AttributeEquals getInstance()
public AttributeEquals locator(AttributeLocator<?> attributeLocator)
Returns the AttributeEquals instance with given attributeLocator preset.
From this element's attribute will be obtained the value.
attributeLocator
- the attribute locator
public AttributeEquals text(String value)
Returns the AttributeEquals instance with preset value.
For equality with this value the condition will wait.
value
- it should wait for equality
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |