Type Members
-
type
Duration = scala.concurrent.duration.Duration
-
type
FiniteDuration = scala.concurrent.duration.FiniteDuration
-
-
type
TimeUnit = java.util.concurrent.TimeUnit
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
val
DAYS: java.util.concurrent.TimeUnit(DAYS)
-
final
val
HOURS: java.util.concurrent.TimeUnit(HOURS)
-
final
val
MICROSECONDS: java.util.concurrent.TimeUnit(MICROSECONDS)
-
final
val
MILLISECONDS: java.util.concurrent.TimeUnit(MILLISECONDS)
-
final
val
MINUTES: java.util.concurrent.TimeUnit(MINUTES)
-
final
val
NANOSECONDS: java.util.concurrent.TimeUnit(NANOSECONDS)
-
final
val
SECONDS: java.util.concurrent.TimeUnit(SECONDS)
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
implicit
def
doubleMult(d: Double): DoubleMult
-
implicit
def
durationDouble(n: Double): DurationConversions
-
implicit
def
durationInt(n: Int): DurationConversions
-
implicit
def
durationLong(n: Long): DurationConversions
-
implicit
def
durationToPair(d: Duration): (Long, TimeUnit)
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
val
fromNow: scala.concurrent.duration.fromNow.type
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
implicit
def
intMult(i: Int): IntMult
-
final
def
isInstanceOf[T0]: Boolean
-
implicit
def
longMult(l: Long): LongMult
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
implicit
def
pairIntToDuration(p: (Int, TimeUnit)): Duration
-
implicit
def
pairLongToDuration(p: (Long, TimeUnit)): FiniteDuration
-
final
val
span: scala.concurrent.duration.span.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
waitFor[T](config: PatienceConfig)(fun: ⇒ T): T
-
def
waitFor[T](duration: FiniteDuration)(fun: ⇒ T): T
-
def
withPatience[T](map: PatienceMap)(fun: ⇒ T): T
-
Inherited from AnyRef
Inherited from Any
WaitFor provides a way to configure the patience for different actions.
In opposide to ScalaTest's Eventually, waitFor will abort when a WebDriverException was detected. You can also not scale all timeouts like in AbstractPatienceConfiguration.
Example:
object PageBrowser extends WaitFor { // timeout how long to wait for the expected page object At extends PatienceConfig(30.seconds) }
Example:
waitFor(PageBrowser.At) { assert(...) // will try up to 30 seconds until the test will be aborted }
If you want to override this value for a test, use withPatience:
withPatience(PageBrowser.At -> 1.second) { // the at checker will now already be aborted after one second... }