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
Doc request - is nightmare.js headless? #744
Comments
Oh no, I ran an example an it opens a whole Electron window :( So it's not headless. Please put this in the docs. Now I can't run it in Docker to have automated tests. |
Ahhh, now I see:
It would be cool if at the top of your readme you changed this line:
to
|
You can run it headless using xvfb or xvfb-run. See #224. |
Are you saying if I don't have |
@RichardJECooke Whether or not you have Nightmare isn't truly headless: it requires an Electron instance to work, which in turn requires a framebuffer to render properly (at least, for now). Setting that aside: if you set |
@RichardJECooke perhaps this docker image https://hub.docker.com/r/smtx/nightmarejs-webservice/ helps you build your nightmare app inside a docker container. Here is the Dockerfile: https://hub.docker.com/r/smtx/nightmarejs-webservice/~/dockerfile/ |
@RichardJECooke I agree, having that information there would be helpful. I just started using the example and noticed it opened a window, which is great while debugging but when I did a search on README.md for headless or hide, to my surprise I did not get an answer. So, having this would have saved me some time from continuing to dig for an answer or having to read the electron docs. |
If it requries X, it's not headless. |
I think this is resolved. If not, feel free to reopen/open a new issue. |
Hi, my company is trying to choose a test framework. Nightmare looks great. It provides promises, ES6, await.
But the docs don't state if it's headless - i.e. does it open an instance of Electron for every test? (Like Selenium opens Firefox for each test).
Or is Electron just Javascript that runs in memory (like Phantom.js & Casper.js which I imagine is much faster because it doesn't have to open an entire application and Window on your screen).
Please will you add a brief note on this to your readme.md
The text was updated successfully, but these errors were encountered: