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

Comments

Projects
None yet
2 participants
@geb-bot
Copy link

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

This comment has been minimized.

Copy link
Author

geb-bot commented Dec 4, 2012

Originally posted by Marcin Erdmann.

Fixed in geb/geb@d5160a2

@geb-bot

This comment has been minimized.

Copy link
Author

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
You can’t perform that action at this time.