|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thoughtworks.selenium.Wait
public abstract class Wait
A utility class, designed to help the user automatically wait until a condition turns true. Use it like this:
new Wait("Couldn't find close button!") {
boolean until() {
return selenium.isElementPresent("button_Close");
}
};
| Nested Class Summary | |
|---|---|
class |
Wait.WaitTimedOutException
|
| Field Summary | |
|---|---|
long |
intervalInMilliseconds
The interval to pause between checking; the default is 500 milliseconds |
long |
timeoutInMilliseconds
The amout of time to wait before giving up; the default is 30 seconds |
| Constructor Summary | |
|---|---|
Wait(java.lang.String message)
Specifies the message we'll use when we fail |
|
Wait(java.lang.String message,
long timeoutInMilliseconds)
Specifies a failure message and a timeout |
|
Wait(java.lang.String message,
long timeoutInMilliseconds,
long intervalInMilliseconds)
Specifies a failure message, a timeout, and an interval |
|
| Method Summary | |
|---|---|
void |
wait(java.lang.String message)
Wait until the "until" condition returns true or the timeout happens |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long timeoutInMilliseconds
public long intervalInMilliseconds
| Constructor Detail |
|---|
public Wait(java.lang.String message)
message - the failure message
public Wait(java.lang.String message,
long timeoutInMilliseconds)
message - the failure messagetimoutInMilliseconds - timeout in milliseconds
public Wait(java.lang.String message,
long timeoutInMilliseconds,
long intervalInMilliseconds)
message - the failure messagetimoutInMilliseconds - timeout in milliseconds| Method Detail |
|---|
public void wait(java.lang.String message)
message - the failure message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||