Here is the problem… Phantom.js is not compatible with Node.js. However, there is a project that does expose the Phantom.js browser within the Node.js environment. This project is called Node Phantom, which does a great job at bringing PhantomJS to NodeJS. But, there is still another issue where the API to this library is not easy to use like Zombie.js.
Also, please read the project description to get an idea of the differences between this library and the Zombie API before using.
Here is an example of how to use this library.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17