Hello
when I run this script hello.js from:
var page = require('webpage').create();
page.open('http://example.com', function(status) {
console.log("Status: " + status);
if(status === "success") {
page.render('example.png');
}
phantom.exit();
});
example.png is not saved to disk??!!!
hello.js is at: F:\Projects\web\phantomtest
phantomsjs is at: C:\Users\imspikey\Desktop\phantomjs-2.1.1-windows\bin
lunsh.js file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "phantomjs",
"request": "launch",
"file": "${workspaceRoot}/phantomtest/hello.js",
"webRoot": "${workspaceRoot}/phantomtest",
"runtimeExecutable": "C://Users//imspikey//Desktop//phantomjs-2.1.1-windows//bin//phantomjs.exe",
"runtimeArgs": [],
"sourceMaps": false
}
]
}
When I run this code from the phantomjs directory it works but when I run it from the plugin
I get the "Status: success" message but no example.png ?!
any help?
Hello
when I run this script hello.js from:
var page = require('webpage').create();
page.open('http://example.com', function(status) {
console.log("Status: " + status);
if(status === "success") {
page.render('example.png');
}
phantom.exit();
});
example.png is not saved to disk??!!!
hello.js is at: F:\Projects\web\phantomtest
phantomsjs is at: C:\Users\imspikey\Desktop\phantomjs-2.1.1-windows\bin
lunsh.js file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "phantomjs",
"request": "launch",
"file": "${workspaceRoot}/phantomtest/hello.js",
"webRoot": "${workspaceRoot}/phantomtest",
"runtimeExecutable": "C://Users//imspikey//Desktop//phantomjs-2.1.1-windows//bin//phantomjs.exe",
"runtimeArgs": [],
"sourceMaps": false
}
]
}
When I run this code from the phantomjs directory it works but when I run it from the plugin
I get the "Status: success" message but no example.png ?!
any help?