|
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.CountEquals
public class CountEquals
Implementation of Condition for waiting if count of elements with given locator is equal to given count.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
Constructor Summary | |
---|---|
protected |
CountEquals()
Instantiates a new text equals. |
Method Summary | |
---|---|
CountEquals |
count(int count)
Returns the CountEquals instance with the count set. |
static CountEquals |
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. |
CountEquals |
locator(IterableLocator<?> iterableLocator)
Returns the CountEquals instance with given elementLocator set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CountEquals()
Method Detail |
---|
public boolean isTrue()
SeleniumCondition
isTrue
in interface SeleniumCondition
public JavaScript getJavaScriptCondition()
JavaScriptCondition
getJavaScriptCondition
in interface JavaScriptCondition
public static CountEquals getInstance()
public CountEquals locator(IterableLocator<?> iterableLocator)
Returns the CountEquals instance with given elementLocator set.
From this locator will be the count of elements.
iterableLocator
- the element locator
public CountEquals count(int count)
Returns the CountEquals instance with the count set.
For this count of elements will condition wait.
count
- it should wait for this element count
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |