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
Copyright © 2013. All rights reserved.