Recomment Node.js v10+ to run.
Install phantomjs
On LINUX
Step 1 – Prerequsities
$ sudo apt-get update
$ sudo apt-get install build-essential chrpath libssl-dev libxft-dev
$ sudo apt-get install libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
Step 2 – Install PhantomJS
$ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
$ sudo tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/
$ sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
Step 3 – Verify PhantomJS Version
$ phantomjs --version
ON WINDOW
Recomment Link installation.
For build production environments...
$ phantomjs <filename>.js
- Screen Capture
- Page Automation
- Network Monitoring
- Testing
- MIT