Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

geb-bot opened this issue Sep 10, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@geb-bot
Copy link

@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
Copy link
Author

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

Resolved

@geb-bot
Copy link
Author

@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
@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants