|
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.TextEquals
public class TextEquals
Implementation of Condition for waiting if element given by elementLocator has text equal to given text.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
Constructor Summary | |
---|---|
protected |
TextEquals()
Instantiates a new text equals. |
Method Summary | |
---|---|
static TextEquals |
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. |
TextEquals |
locator(ElementLocator<?> elementLocator)
Returns the TextEquals instance with given elementLocator set. |
TextEquals |
text(String text)
Returns the TextEquals instance with text set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TextEquals()
Method Detail |
---|
public boolean isTrue()
SeleniumCondition
isTrue
in interface SeleniumCondition
public JavaScript getJavaScriptCondition()
JavaScriptCondition
getJavaScriptCondition
in interface JavaScriptCondition
public static TextEquals getInstance()
public TextEquals locator(ElementLocator<?> elementLocator)
Returns the TextEquals instance with given elementLocator set.
From this locator will be obtained the text.
elementLocator
- the element locator
public TextEquals text(String text)
Returns the TextEquals instance with text set.
For equality with this text the condition will wait.
text
- 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 |