public class WaitFor extends Object
Constructor and Description |
---|
WaitFor(Element element,
OutputFile file) |
Modifier and Type | Method and Description |
---|---|
void |
changeDefaultWait(double seconds)
Changes the default wait time from 5.0 seconds to some custom number.
|
void |
displayed()
Wait up to the default time (5 seconds) for the element to be displayed
|
void |
displayed(double seconds)
Wait up to a specified time for the element to be displayed
|
void |
enabled()
Wait up to the default time (5 seconds) for the element to be enabled
|
void |
enabled(double seconds)
Wait up to a specified time for the element to be enabled
|
void |
notDisplayed()
Wait up to the default time (5 seconds) for the element to not be
displayed
|
void |
notDisplayed(double seconds)
Wait up to a specified time for the element to no longer be displayed
|
void |
notEnabled()
Wait up to the default time (5 seconds) for the element to not be enabled
|
void |
notEnabled(double seconds)
Wait up to a specified time for the element to no longer be enabled
|
void |
notPresent()
Wait up to the default time (5 seconds) for the element to not be present
|
void |
notPresent(double seconds)
Wait up to a specified time for the element to no longer be present
|
void |
present()
Wait up to the default time (5 seconds) for the element to be present
|
void |
present(double seconds)
Wait up to a specified time for the element to be present
|
public WaitFor(Element element, OutputFile file)
public void changeDefaultWait(double seconds)
seconds
- - how many seconds should WaitFor wait for the condition to be
metpublic void present()
public void notPresent()
public void displayed()
public void notDisplayed()
public void enabled()
public void notEnabled()
public void present(double seconds)
seconds
- - the number of seconds to waitpublic void notPresent(double seconds)
seconds
- - the number of seconds to waitpublic void displayed(double seconds)
seconds
- - the number of seconds to waitpublic void notDisplayed(double seconds)
seconds
- - the number of seconds to waitpublic void enabled(double seconds)
seconds
- - the number of seconds to waitpublic void notEnabled(double seconds)
seconds
- - the number of seconds to waitCopyright © 2017. All rights reserved.