Installation

Installing & launching SlimerJS on your plateform

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.

Firefox

The Famous Web Browser. SlimerJS needs only its core engine to be executed. Minimum version: 18.0.

Download

Xulrunner

XulRunner is a software that contains only the core engine of Firefox and which can launch an application like SlimerJS, made with Mozilla technologies (XUL, XPCom...). Minimum version: 18.0.

Download

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 MacOS

export SLIMERJSLAUNCHER=/Applications/Firefox.app/Contents/MacOS/firefox

On windows with cygwin

export SLIMERJSLAUNCHER="/cygdrive/c/program files/mozilla firefox/firefox.exe"

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

On Linux or MacOS

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.