Skip to content

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

@geb-bot

Description

@geb-bot

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions