Tutorial by Examples

For Visual Studio [NuGet]: The easiest way of installing PhantomJS is by using a NuGet Package Manager. In your project, right click "References", and click on "Manage NuGet Packages" as shown: Then, type "PhantomJS" to the search bar, select it and install it as s...
var page = require('webpage').create(); page.open('http://www.google.com', function(status) { console.log("Status: " + status); var title = page.evaluate(function() { return document.title; }); console.log("Loaded page: " + title); phantom.exit(); });

Page 1 of 1