Skip to content

vanhocpham/phantom-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhantomJS Basic

N|Solid

Installation

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

Todos

  • Screen Capture
  • Page Automation
  • Network Monitoring
  • Testing

License

  • MIT

Releases

No releases published

Packages

No packages published