public interface ConditionRunner
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.Modifier and Type | Interface and Description |
---|---|
static interface |
ConditionRunner.Context
Used by implementations of
waitFor(Condition) to provide context to the
isTrue(com.google.testing.selenium.condition.ConditionRunner.Context) method |
Modifier and Type | Method and Description |
---|---|
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
|
void waitFor(Condition condition)
condition
's
Condition.isTrue(ConditionRunner.Context)
method, until:
AssertionFailedError
in the
case of JUnit
RuntimeException
and
rethrown
How often if "every so often" and how long is the "certain amount of time" is left to the specific implementations of this interface.
condition
- conditionCopyright © 2015. All rights reserved.