Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser is null in "base" section #582

Closed
bugs84 opened this issue May 31, 2019 · 1 comment
Closed

browser is null in "base" section #582

bugs84 opened this issue May 31, 2019 · 1 comment
Assignees
Milestone

Comments

@bugs84
Copy link

@bugs84 bugs84 commented May 31, 2019

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)

@erdi erdi added this to the 3.2 milestone Oct 18, 2019
@erdi erdi self-assigned this Oct 18, 2019
@erdi erdi closed this in ce31752 Oct 18, 2019
@bugs84
Copy link
Author

@bugs84 bugs84 commented Dec 6, 2019

very nice beautiful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants