|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgeb.waiting.WaitingSupport
class WaitingSupport extends Object
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 | |
---|---|
def
|
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. |
def
|
waitFor(Closure block)
Uses the default wait from the configuration to wait for block to return a true value according to the Groovy Truth. |
def
|
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. |
def
|
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. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
WaitingSupport(Configuration config)
Method Detail |
---|
def 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
def waitFor(Closure block)
block
- what is to be waited on to return a true-ish value
def 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
def 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
Groovy API Documentation for geb-core 0.6.0 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org