at() methods should return the page object on match #217

Closed
geb-bot opened this Issue Sep 10, 2012 · 2 comments

Projects

None yet

2 participants

@geb-bot
geb-bot commented Sep 10, 2012

Originally created by Luke Daley.

This would make it easier for people wanting to use more types:

class SomeGebSpec extends GebSpec {

    def "login"() {
        when:
        go "http://somewhere.com"

        then:
        def loginPage = at(LoginPage)
        loginPage.username.value "fred"
    }
}
@geb-bot
geb-bot commented Sep 18, 2012

Resolved

@geb-bot
geb-bot commented Sep 18, 2012

Originally posted by Marcin Erdmann.

Resolved in geb/geb@82b1747

Also applied to toAt() and to() methods.

Only updated javadocs for those methods, decided not to put it anywhere in manual as it seems to be a pretty edge case usage.

@geb-bot geb-bot added the Improvement label Apr 12, 2015
@erdi erdi was assigned by geb-bot Apr 12, 2015
@geb-bot geb-bot added this to the 0.9.0 milestone Apr 12, 2015
@geb-bot geb-bot closed this Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment