class PageImplicitAtVerificationException : BalinException
This exception is thrown when the implicit at verification of a page doesn't pass after the browser has tried navigating to it.
// Given the Kotlin's website index page with an invalid `at` clause
class IndexPage(browser: Browser) : Page(browser) {
override val url = "https://kotlinlang.org/"
override val at = at {
assertEquals(title, "Wrong title")
}
}
Browser.drive(driverFactory) {
// When I visit such page
// Then the navigation should be a failure
expectThrows(AssertionError::class.java) {
to(::IndexPage)
}
}
PageImplicitAtVerificationException()
This exception is thrown when the implicit at verification of a page doesn't pass after the browser has tried navigating to it. |