This is a PageObject to detect Browser Error Pages.
A dimension containing the width and height of a screen element.
A point containing an XY screen location.
A dimension containing the width and height of a screen element.
WaitFor provides a way to configure the patience for different actions.
WaitFor provides a way to configure the patience for different actions.
In opposide to ScalaTest's Eventually, waitFor will abort when a WebDriverException was detected. You can also not scale all timeouts like in AbstractPatienceConfiguration.
Example:
object PageBrowser extends WaitFor {
// timeout how long to wait for the expected page
object At extends PatienceConfig(30.seconds)
}
Example:
waitFor(PageBrowser.At) {
assert(...) // will try up to 30 seconds until the test will be aborted
}
If you want to override this value for a test, use withPatience:
withPatience(PageBrowser.At -> 1.second) {
// the at checker will now already be aborted after one second...
}
Companion object WaitFor, only for internal usage
This is a PageObject to detect Browser Error Pages.
It is used as a default for UnexpectedPages to cancel a test when a BrowserErrorPage was found.