Package com.thoughtworks.selenium
Class Wait
- java.lang.Object
-
- com.thoughtworks.selenium.Wait
-
@Deprecated public abstract class Wait extends java.lang.Object
Deprecated.The RC interface will be removed in Selenium 3.0. Please migrate to using WebDriver.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
Nested Classes Modifier and Type Class Description static class
Wait.WaitTimedOutException
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_INTERVAL
Deprecated.The interval to pause between checking; the default is 500 millisecondsstatic long
DEFAULT_TIMEOUT
Deprecated.The amount of time to wait before giving up; the default is 30 seconds
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract boolean
until()
Deprecated.void
wait(java.lang.String message)
Deprecated.Wait until the "until" condition returns true or time runs out.void
wait(java.lang.String message, long timeoutInMilliseconds)
Deprecated.Wait until the "until" condition returns true or time runs out.void
wait(java.lang.String message, long timeoutInMilliseconds, long intervalInMilliseconds)
Deprecated.Wait until the "until" condition returns true or time runs out.
-
-
-
Field Detail
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
Deprecated.The amount of time to wait before giving up; the default is 30 seconds- See Also:
- Constant Field Values
-
DEFAULT_INTERVAL
public static final long DEFAULT_INTERVAL
Deprecated.The interval to pause between checking; the default is 500 milliseconds- See Also:
- Constant Field Values
-
-
Method Detail
-
until
public abstract boolean until()
Deprecated.- Returns:
- true when it's time to stop waiting
-
wait
public void wait(java.lang.String message)
Deprecated.Wait until the "until" condition returns true or time runs out.- Parameters:
message
- the failure message- Throws:
Wait.WaitTimedOutException
- if "until" doesn't return true until the timeout- See Also:
until()
-
wait
public void wait(java.lang.String message, long timeoutInMilliseconds)
Deprecated.Wait until the "until" condition returns true or time runs out.- Parameters:
message
- the failure messagetimeoutInMilliseconds
- the amount of time to wait before giving up- Throws:
Wait.WaitTimedOutException
- if "until" doesn't return true until the timeout- See Also:
until()
-
wait
public void wait(java.lang.String message, long timeoutInMilliseconds, long intervalInMilliseconds)
Deprecated.Wait until the "until" condition returns true or time runs out.- Parameters:
message
- the failure messagetimeoutInMilliseconds
- the amount of time to wait before giving upintervalInMilliseconds
- the interval to pause between checking "until"- Throws:
Wait.WaitTimedOutException
- if "until" doesn't return true until the timeout- See Also:
until()
-
-