FAQ

Or Frequently Asked Questions...

Why is it not natively headless?
You see windows during the execution of your script? It's normal. Gecko, the rendering engine of Firefox, cannot render web content without a graphical window. See Mozilla bug 446591. However you can launch SlimerJS with xvfb if you are under linux or MacOSx, to have a headless SlimerJS.
Why is it called "SlimerJs"?
Slimer is the name of a ghost in the movie "GhostBusters". As you may now, the Firefox source code uses many references from this movie, and since PhantomJS, CasperJs and other related tools, is a matter of ghosts... ;-)
How can I contribute?
You can contribute in many ways:
  • Report bugs or ideas of improvements into "issues" on github
  • Improve the code by providing patches. SlimerJS is entirely in Javascript!! Fork the repository in github, commit, and do pull requests. Please create one dedicated branch for each bugs/features.
  • Document the API. The documentation is stored in the github repository.
  • Other ideas? Discuss with us on the IRC channel or in the mailing list (see the community page).
Hey, CapserJS does not work with SlimerJS!
Yes, because:
  • SlimerJS does not implement yet all the PhantomJS API
  • CasperJS does not know SlimerJS but we are working on it and we will provide some patch to the CasperJS project
Why are there no tests on the WebServer object in the source code?
This module is based on the httpd component of Mozilla used for their own unit tests, and that is already heavily tested
Why are there no tests on the FileSystem object in the source code?
This module is based on the file module provided in the Mozilla Addons SDK, and is already tested.