uitest can be installed on most Linuxes, OSX and Windows.
Installation can be achieved using git. The code is mainly hosted on Github.
$ git clone git://github.com/uitest/uitest.git
$ cd uitest
$ ln -sf `pwd`/bin/uitest /usr/local/bin/uitest
$ npm install
Once uitest install on your machine,you should obtain something like this:
$ node -v
v0.10.11
$ uitest --version
0.4.1
# ...
Now we should tell uitest which browser can be used and other options see also config:
$ uitest init
Warning
In Linuxes and MAC OS ,you should use sudo , so uitest can create the file
What did we just do?
We use browsers plugins to inject our own scripts to the browser,and the script locates at {uitestDir}/static/uitest.js
$ uitest plugin
Use it to auto-install your plugins,there may be are some issues,you can find the plugin under {uitestDir/plugin},you can install them yourself;
The chrome plugin can be downloaded here:chrome store
We had met some issue on Windows , one was the PATH, here is the solution:
Warning
if you run the command:uitest init and press tab to select the browsers you wanner choose,and press enter.(you can choose muti-browsers)
if you see the warning :
No binary for [your browser]
then you need to set your PATH