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

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

Projects

None yet

2 participants

@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
geb-bot commented Dec 4, 2012

Originally posted by Marcin Erdmann.

Fixed in geb/geb@d5160a2

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

Resolved

@geb-bot geb-bot added the Bug label Apr 12, 2015
@erdi erdi was assigned by geb-bot 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