@Deprecated public abstract class Wait extends Object
new Wait("Couldn't find close button!") {
boolean until() {
return selenium.isElementPresent("button_Close");
}
};
Modifier and Type | Class and Description |
---|---|
class |
Wait.WaitTimedOutException
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_INTERVAL
Deprecated.
The interval to pause between checking; the default is 500 milliseconds
|
static long |
DEFAULT_TIMEOUT
Deprecated.
The amount of time to wait before giving up; the default is 30 seconds
|
Constructor and Description |
---|
Wait()
Deprecated.
|
Wait(String messageToShowIfTimeout)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
until()
Deprecated.
Returns true when it's time to stop waiting
|
void |
wait(String message)
Deprecated.
Wait until the "until" condition returns true or time runs out.
|
void |
wait(String message,
long timeoutInMilliseconds)
Deprecated.
Wait until the "until" condition returns true or time runs out.
|
void |
wait(String message,
long timeoutInMilliseconds,
long intervalInMilliseconds)
Deprecated.
Wait until the "until" condition returns true or time runs out.
|
public static final long DEFAULT_TIMEOUT
public static final long DEFAULT_INTERVAL
public Wait()
public Wait(String messageToShowIfTimeout)
public abstract boolean until()
public void wait(String message)
message
- the failure messageWait.WaitTimedOutException
- if "until" doesn't return true until the timeoutuntil()
public void wait(String message, long timeoutInMilliseconds)
message
- the failure messagetimeoutInMilliseconds
- the amount of time to wait before giving upWait.WaitTimedOutException
- if "until" doesn't return true until the timeoutuntil()
public void wait(String message, long timeoutInMilliseconds, long intervalInMilliseconds)
message
- the failure messagetimeoutInMilliseconds
- the amount of time to wait before giving upintervalInMilliseconds
- the interval to pause between checking "until"Wait.WaitTimedOutException
- if "until" doesn't return true until the timeoutuntil()
Copyright © 2015. All rights reserved.