|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgeb.waiting.WaitingSupport
@SuppressWarnings("GrMethodMayBeStatic")
class WaitingSupport
A mixin style class that adds support for waiting for different things. This is mixed into Page and Module.
| Constructor Summary | |
WaitingSupport(Configuration config)
|
|
| Method Summary | |
|---|---|
Object
|
waitFor(String waitPreset, Closure block)
Uses the wait preset from the configuration with the given name to to wait for block to return a true value according to the Groovy Truth. |
Object
|
waitFor(Map params, String waitPreset, Closure block)
|
Object
|
waitFor(Closure block)
Uses the default wait from the configuration to wait for block to return a true value according to the Groovy Truth. |
Object
|
waitFor(Map params, Closure block)
|
Object
|
waitFor(Double timeout, Closure block)
Invokes block every Configuration.getDefaultWaitRetryInterval seconds, until it returns a true value according to the Groovy Truth, waiting at most timeout seconds. |
Object
|
waitFor(Map params, Double timeout, Closure block)
|
Object
|
waitFor(Double timeout, Double interval, Closure block)
Invokes block every interval seconds, until it returns a true value according to the Groovy Truth, waiting at most timeout seconds. |
Object
|
waitFor(Map params, Double timeout, Double interval, Closure block)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
WaitingSupport(Configuration config)
| Method Detail |
|---|
Object waitFor(String waitPreset, Closure block)
waitPreset - the name of the wait preset in configuration to useblock - what is to be waited on to return a true-ish value
Object waitFor(Map params, String waitPreset, Closure block)
Object waitFor(Closure block)
block - what is to be waited on to return a true-ish value
Object waitFor(Map params, Closure block)
Object waitFor(Double timeout, Closure block)
timeout - the number of seconds to wait for block to return (roughly)block - what is to be waited on to return a true-ish value
Object waitFor(Map params, Double timeout, Closure block)
Object waitFor(Double timeout, Double interval, Closure block)
interval - the number of seconds to wait between invoking blocktimeout - the number of seconds to wait for block to return (roughly)block - what is to be waited on to return a true-ish value
Object waitFor(Map params, Double timeout, Double interval, Closure block)
Groovy API Documentation for Geb 0.9.0-RC-3 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org