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

Module base definition is failing when text matching methods are used. #241

Closed
geb-bot opened this issue Dec 4, 2012 · 2 comments
Closed

Module base definition is failing when text matching methods are used. #241

geb-bot opened this issue Dec 4, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@geb-bot
Copy link

@geb-bot geb-bot commented Dec 4, 2012

Originally created by marko.m.

Following code fails with,

groovy.lang.MissingPropertyException: No such property: testmod for class: testing

The suspicion is that ModuleBaseDefinitionDelegate should contain a TextMatchingSupport.

Discussion thread...
http://tinyurl.com/bnhhdgs

class TestMod extends Module {
    static base = { $("#hpplink", text:contains("Love")) }

    static content = {
        theLink { $("a") }
    }
}


class HomePage extends Page {
    static url = "http://google.com/"
     static content = {
        testmod { module TestMod }
     }
}


Browser.drive(driver:new ChromeDriver()) {
    to HomePage
    testmod.theLink
}.quit()
@geb-bot
Copy link
Author

@geb-bot geb-bot commented Dec 4, 2012

Originally posted by Marcin Erdmann.

Fixed in geb/geb@d5160a2

@geb-bot
Copy link
Author

@geb-bot geb-bot commented Dec 4, 2012

Resolved

@geb-bot geb-bot added the Bug label Apr 12, 2015
@geb-bot geb-bot closed this Apr 12, 2015
@erdi erdi added this to the 0.9.1 milestone Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants