|
Graphene Selenium: Implementation 2.0.0.Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.arquillian.ajocado.waiting.DefaultWaiting<AjaxWaiting>
org.jboss.arquillian.ajocado.waiting.ajax.DefaultAjaxWaiting
public class DefaultAjaxWaiting
Implementation of waiting for satisfaction of conditions on page after the Ajax request.
It uses custom JavaScript and com.thoughtworks.selenium.Selenium.Selenium#waitForCondition(String, String) to wait for satisfying given condition.
| Constructor Summary | |
|---|---|
DefaultAjaxWaiting()
|
|
| Method Summary | ||
|---|---|---|
void |
until(JavaScriptCondition condition)
Stars loop waiting to satisfy condition. |
|
|
waitForChange(JavaScriptRetriever<T> retriever)
Waits until Retrieve's implementation doesn't retrieve value other than value stored by initialization in retriever. |
|
|
waitForChange(T oldValue,
JavaScriptRetriever<T> retriever)
Waits until Retrieve's implementation doesn't retrieve value other than oldValue. |
|
|
waitForChangeAndReturn(JavaScriptRetriever<T> retriever)
Waits until Retrieve's implementation doesn't retrieve value other than value stored by initialization in retriever. |
|
|
waitForChangeAndReturn(T oldValue,
JavaScriptRetriever<T> retriever)
Waits until Retrieve's implementation doesn't retrieve value other than oldValue and this new value returns. |
|
| Methods inherited from class org.jboss.arquillian.ajocado.waiting.DefaultWaiting |
|---|
dontFail, fail, failWith, failWith, getInterval, getTimeout, interval, isDelayed, noDelay, timeout, waitForTimeout, withDelay |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.arquillian.ajocado.waiting.Waiting |
|---|
dontFail, failWith, failWith, interval, noDelay, timeout, waitForTimeout, withDelay |
| Constructor Detail |
|---|
public DefaultAjaxWaiting()
| Method Detail |
|---|
public void until(JavaScriptCondition condition)
until in interface AjaxWaitingcondition - what wait for to be satisfied
public <T> void waitForChange(T oldValue,
JavaScriptRetriever<T> retriever)
waitForChange in interface AjaxWaitingT - type of value what we are waiting for changeoldValue - value that we are waiting for changeretriever - implementation of retrieving actual valuepublic <T> void waitForChange(JavaScriptRetriever<T> retriever)
Waits until Retrieve's implementation doesn't retrieve value other than value stored by initialization in retriever.
After retrieving, new value will be associated with given Retriever.
Note that Retriever needs to be initialized first by one of methods
RetrievedValueHolder.initializeValue() or
RetrievedValueHolder.setValue(Object) .
waitForChange in interface AjaxWaitingT - type of value what we are waiting for changeretriever - implementation of retrieving actual value
public <T> T waitForChangeAndReturn(T oldValue,
JavaScriptRetriever<T> retriever)
waitForChangeAndReturn in interface AjaxWaitingT - type of value what we are waiting for changeoldValue - value that we are waiting for changeretriever - implementation of retrieving actual value
public <T> T waitForChangeAndReturn(JavaScriptRetriever<T> retriever)
Waits until Retrieve's implementation doesn't retrieve value other than value stored by initialization in retriever.
After retrieving, new value will be associated with given Retriever.
Note that Retriever needs to be initialized first by one of methods
RetrievedValueHolder.initializeValue() or
RetrievedValueHolder.setValue(Object) .
waitForChangeAndReturn in interface AjaxWaitingT - type of value what we are waiting for changeretriever - implementation of retrieving actual value
|
Graphene Selenium: Implementation 2.0.0.Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||