balin / com.github.epadronu.balin.exceptions / MissingPageUrlException

MissingPageUrlException

class MissingPageUrlException : BalinException

This exception is thrown when either com.github.epadronu.balin.core.Browser.to or com.github.epadronu.balin.core.Page.click are used with a page that has not defined a url.

// Given a page with no URL
class TestPage(browser: Browser) : Page(browser)

// When I visit such page
Browser.drive(driverFactory) {
    // Then MissingPageUrlException should be throw
    expectThrows(MissingPageUrlException::class.java) {
        to(::TestPage)
    }
}

Constructors

<init>

MissingPageUrlException()

This exception is thrown when either com.github.epadronu.balin.core.Browser.to or com.github.epadronu.balin.core.Page.click are used with a page that has not defined a url.