Today, I discovered a great tool called “casperjs”, which allows you to test your website with Headless WebKit. Having just tried a few minutes, I instantly fall in love with this tool. You can use it to simulate almost any browser behavior.
Installing it on ubunutu is quite straightforward.
#clone the repository from the master branch git clone git://github.com/n1k0/casperjs.git #Symlink the relevant file into your bin or /usr/local/bin ln -sf ~/repositories/casperjs/bin/casperjs /bin/casperj ln -sf ~/repositories/casperjs/bin/casperjs /usr/bin/casperj