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

NullPointerException When using driver from new thread #188

Open
sebady opened this issue Oct 10, 2015 · 3 comments
Open

NullPointerException When using driver from new thread #188

sebady opened this issue Oct 10, 2015 · 3 comments

Comments

@sebady
Copy link

sebady commented Oct 10, 2015

@test()
@webtest(browser = "*phantomjs")
public void testDriverFromNewThread() {
new Thread(new Runnable() {
public void run() {
// inherit driver created on webtest?
Grid.driver().get(url);
}
}).start();
}

@mach6
Copy link
Contributor

mach6 commented Oct 13, 2015

@sebady This is sort-of by design. That said, we should probably do a better job guarding against this and throw something a bit nicer than a NPE. Do you agree?

@sebady
Copy link
Author

sebady commented Oct 13, 2015

I wanted to look at this and see if it is possible to support this. If not then a better exception might be called for here.

@mach6
Copy link
Contributor

mach6 commented Oct 13, 2015

Okay. Sounds good

@mach6 mach6 added this to the 1.1.0 milestone Jan 27, 2016
@mach6 mach6 removed this from the 1.1.0 milestone May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants