|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConditionRunner
A ConditionRunner is a class that can execute a Condition, which need certain basic
pieces that it needs to execute (e.g. an instance of Selenium). This is achieved through
the ConditionRunner.Context interface.
| Nested Class Summary | |
|---|---|
static interface |
ConditionRunner.Context
Used by implementations of waitFor(Condition) to provide context to the
isTrue(com.google.testing.selenium.condition.ConditionRunner.Context) method |
| Method Summary | |
|---|---|
void |
waitFor(Condition condition)
This method will, every so often, evaluate the given condition's
Condition.isTrue(ConditionRunner.Context) method, until:
it becomes true, in which case it simply returns
a certain amount of time is passed, in which case it fails by throwing an failure exception
tailored to a given test framework -- e.g. |
void |
waitFor(String narrative,
Condition condition)
As above but with an additional 'should' phrase narrative used in the event of the condition failing to become true |
| Method Detail |
|---|
void waitFor(Condition condition)
condition's
Condition.isTrue(ConditionRunner.Context) method, until:
AssertionFailedError in the
case of JUnit
RuntimeException and
rethrown
void waitFor(String narrative,
Condition condition)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||