3 var phridge = require("../../lib/main.js");
6 .then(function (phantom) {
7 // It's necessary to exit cleanly because otherwise phantomjs doesn't exit on Windows
8 process.on("uncaughtException", function (err) {
10 phantom.dispose().then(function () {
15 phantom.run(function (resolve) {