-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
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)
Reactions are currently unavailable