public class WaitFor extends Object
Constructor and Description |
---|
WaitFor(org.openqa.selenium.WebDriver driver,
OutputFile file) |
Modifier and Type | Method and Description |
---|---|
void |
alertPresent()
Wait up to the default time (5 seconds) for an alert to be present
|
void |
alertPresent(double seconds)
Wait up to a specified time for an alert to be present
|
void |
changeDefaultWait(double seconds)
Changes the default wait time from 5.0 seconds to some custom number.
|
void |
confirmationPresent()
Wait up to the default time (5 seconds) for a confirmation to be present
|
void |
confirmationPresent(double seconds)
Wait up to a specified time for a confirmation to be present
|
void |
promptPresent()
Wait up to the default time (5 seconds) for a prompt to be present
|
void |
promptPresent(double seconds)
Wait up to a specified time for a prompt to be present
|
public WaitFor(org.openqa.selenium.WebDriver driver, OutputFile file)
public void changeDefaultWait(double seconds)
seconds
- - how many seconds should WaitFor wait for the condition to be
metpublic void alertPresent()
public void confirmationPresent()
public void promptPresent()
public void alertPresent(double seconds)
seconds
- - the number of seconds to waitpublic void confirmationPresent(double seconds)
seconds
- - the number of seconds to waitpublic void promptPresent(double seconds)
seconds
- - the number of seconds to waitCopyright © 2017. All rights reserved.