... | ... | @@ -4,3 +4,21 @@ PhantomJS is a headless browser that is used to run some of our integration test |
|
|
|
|
|
## Installing PhantomJS
|
|
|
|
|
|
__Ubuntu__:
|
|
|
|
|
|
Notice that we are installing version 2.1.1 of phantomjs. It's advisable to visit its website and check what is the current version. Replace the version number in the commands bellow by the current version number.
|
|
|
|
|
|
cd /usr/local/share
|
|
|
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
|
|
sudo tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
|
|
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
|
|
|
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
|
|
|
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
|
|
|
|
|
|
Check if everything is ok running
|
|
|
|
|
|
phantomjs -v
|
|
|
|
|
|
You should see:
|
|
|
|
|
|
2.1.1 |