Skip to content

browser is null in "base" section #582

@bugs84

Description

@bugs84

We have Module and we need specify base element in it:
e.g.

class PasswordVariableModule extends Module {
    static base = {
        browser.  ...   // browser == null
    }
}

I am able to get browser instance by this ugly hack:
Browser andHereIsTheBrowser = ((geb.navigator.DefaultNavigator)($("body"))).browser
but I would prefer if browser were already set. At the time when my "base" closure is called.

Would it be possilbe?

Unimportant note:
We need Browser (Driver) instance to select element. (As we have special JavaScript which find our elements in the page)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions