SlimerJS

Installation

Installation of Firefox or Xulrunner

SlimerJS runs on any platform on which Firefox (Desktop version) is available. It needs XulRunner or Firefox. So install them first, for your prefered operating system.

Installation of SlimerJs

Download the latest zip package of SlimerJS and extract files into somewhere on your disk. You'll have a slimerjs/ directory with some files and a script slimerjs (and slimerjs.bat for Windows).

During its launch, SlimerJS tries to discover itself the path of Firefox or XulRunner. In case it fails, you should create an environment variable containing the path of the Firefox/XulRunner binary. To create this environment variable from a command line:

On linux: export SLIMERJSLAUNCHER=/usr/bin/firefox
on Windows SET SLIMERJSLAUNCHER="c:\Program Files\Mozilla Firefox\firefox.exe
On windows with cygwin export SLIMERJSLAUNCHER="/cygdrive/c/program files/mozilla firefox/firefox.exe"
On MacOS export SLIMERJSLAUNCHER=/Applications/Firefox.app/Contents/MacOS/firefox

You can of course set this variable in your .bashrc, .profile or in the computer properties on Windows.

Launching SlimerJS

From a command line, call the slimerjs script with the path of a javascript file.

/somewhere/slimerjs-1.2.3/slimerjs myscript.js

On Windows: c:\somewhere\slimerjs-1.2.3\slimerjs.bat myscript.js

The js script should contain your instructions to manipulate a web page... See the documentation.