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()